recentpopularlog in

kme : conversion   50

Paste to Markdown
Uses Turndown (JavaScript library). Good for Mac where 'pbpaste' can't be coerced into outputting raw HTML in a pipe to, say, 'pandoc'.
html  rtf  markdown  conversion  textprocessing  webapp  utility  solution 
5 weeks ago by kme
A stupid proposal: fill stackexchange with Miller · Issue #212 · johnkerl/miller | https://github.com/
Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON - johnkerl/miller
textprocessing  importexport  conversion  delimitedtext  tabdelimited  csv  miller  sampleusage  needshelp 
january 2019 by kme
DER vs. CRT vs. CER vs. PEM Certificates and How To Convert Them | https://support.ssl.com/
Microsofty things use the '.cer' extension (which is interchangeable with '.crt'), and are often DER-encoded. PEM-encoded certs are "ASCII (Base64) armored data" prefixed with a "-----BEGIN CERTIFICATE-----" line.

Here's how to "cat" a DER-encoded certificate:
<code class="language-bash">
openssl x509 -in certificate.der -inform der -text -noout
</code>

And here's how to convert one in that format to the format expected on a Debian GNU/Linux system:
<code class="language-bash">
openssl x509 -in cert.crt -inform der -outform pem -out cert.crt
</code>

NB: the '.crt' extension seems to be important, otherwise 'sudo update-ca-certificates' doesn't pick up on new ones that you've added to /usr/local/share/ca-certificates.
ssl  certs  cacert  certificates  openssl  sysadmin  webmaster  crypto  fuckina  solution  importexport  conversion 
january 2019 by kme
How to Open WebP Images in GIMP – Better Tech Tips | https://www.bettertechtips.com/
Or you can install 'webp' and 'imagemagick' packages and use 'convert' to convert to a format that GIMP or whatever can actually open natively.
webdevel  webdesign  webp  gimp  conversion  importexport  plugin  sortof  solution 
january 2019 by kme
converter - ffmpeg - Converting MOV files to MP4 - Stack Overflow | https://stackoverflow.com/
This worked:
<code class="language-bash">ffmpeg -i movie.mov -vcodec copy -acodec copy out.mp4</code>
mov  mp4  video  codec  conversion  transcoding  importexport  solution 
november 2018 by kme
MAN2HTML
This is the one bundled with jimeh/manservant, that doesn't seem to work on Linux manual pages.
man2html  conversion  importexport  manual  manpages  documentation 
december 2017 by kme
excel - Convert xlsx to csv in linux command line - Stack Overflow
Mentioned in this thread:

- csvkit's 'in2csv'
- Gnumeric's 'ssconvert'
- libreoffice --headless --convert-to csv $filename --outdir $outdir
- xls2csv
- an R snippet
linux  excel  xlsx  textprocessing  importexport  conversion  reference 
december 2017 by kme
dumblob/mysql2sqlite: Converts MySQL dump to SQLite3 compatible dump
Using 'mysqldump' is no joke. SequelPro didn't work (at least with default options).
mysqldump --skip-extended-insert --compact [options]... DB_name
sqlite  conversion  dba  script  importexport  mysql  solution 
february 2017 by kme
Decoding UTF-8 charset in an .EML file [http://www.perlmonks.org/]
I ran into this problem saving an email to the .eml format with Thunderbird. Mail.app on the Mac is an okay viewer for this kind of file, but what I really wanted was the UTF-8 source text to paste into LibreOffice.
email  encoding  utf8  importexport  conversion  maybesolution  sarcasm 
september 2016 by kme
HowTo: UNIX / Linux Convert DOS Newlines CR-LF to Unix/Linux Format
Type the following command to convert file called myfile.txt:
<code class="language-bash">$ unix2dos myfile.txt
$ unix2dos -b myfile.txt</code>

Task: Convert Dos TO Unix Using tr Command
<code class="language-bash">tr -d '\r' < input.file > output.file</code>

Task: Convert Dos TO Unix Using Perl One Liner
<code class="language-bash">perl -pi -e 's/\r\n/\n/g' input.file</code>
textprocessing  conversion  howto  unix  dos  lineends  whitespace 
april 2016 by kme
linux - Converting a PDF to black & white with ghostscript - Super User - http://superuser.com/
gs -o <output-file.pdf> -sDEVICE=pdfwrite \
-c "/osetcolor {/setcolor} bind def /setcolor {pop [0 0 0] osetcolor} def" \
-f <input-file.ps>
postscript  ghostscript  maybesolution  resample  conversion  commandline 
november 2015 by kme
ghostscript - How to convert a PDF to grayscale from command line avoiding to be rasterized? - Stack Overflow - http://stackoverflow.com/
gs \
-sDEVICE=pdfwrite \
-sProcessColorModel=DeviceGray \
-sColorConversionStrategy=Gray \
-dOverrideICC \
-o out.pdf \
-f page-27.pdf
ghostscript  pdf  commandline  conversion  solution 
november 2015 by kme
ps2pdf: PostScript-to-PDF converter
-dPDFSETTINGS=configuration
Presets the "distiller parameters" to one of four predefined settings:

/screen selects low-resolution output similar to the Acrobat Distiller "Screen Optimized" setting.
/ebook selects medium-resolution output similar to the Acrobat Distiller "eBook" setting.
/printer selects output similar to the Acrobat Distiller "Print Optimized" setting.
/prepress selects output similar to Acrobat Distiller "Prepress Optimized" setting.
/default selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.

postscript  pdf  conversion  ghostscript  commandline  reference  essential 
february 2014 by kme

Copy this bookmark:





to read