Skip to content

Instantly share code, notes, and snippets.

@erwanosouf
erwanosouf / openssh2rsa
Created August 4, 2022 16:11
OpenSSH Private Key to RSA
# OpenSSH Private Keys have a specific format
# It cannot be read by openssl and gives that error :
# Could not read private key from id_rsa
# I also tried with ssh-keygen
# > ssh-keygen -if id_rsa -m PEM
# That gives
# > do_convert_from_pem: unrecognised raw private key format
# The solution is to use ssh-keygen and to change the passphrase :
ssh-keygen -p -N "" -m pem -f id_rsa
@erwanosouf
erwanosouf / gist:634e777adc2348b6540ef741f3379f0b
Created May 9, 2020 11:23
Edit Network Connection for VPN autoconnect
nm-connection-editor
@erwanosouf
erwanosouf / gist:ca5f78c00080d9e70deb0e002e5afbd4
Created March 15, 2020 13:44
Quod Libert greedy matcher
Quod Libert greedy matcher : <~>
Allows to match without saving to tags
@erwanosouf
erwanosouf / gist:acdcf29bfe74880be6240b328f496ce2
Last active March 5, 2020 18:28
Convert FLAC to AIFF while saving tags/metadata
ffmpeg -i input.flac -write_id3v2 1 -c:v copy output.aiff
sudo apt install snapd && sudo snap install pdftk
[Doc Ubuntu.fr](https://doc.ubuntu-fr.org/pdftk)
pandoc -s -o doc.pdf doc.md
[Source](https://www.mscharhag.com/software-development/pandoc-markdown-to-pdf)
shntool split -t "%n - %t" -f "cuesheet.cue" -o flac "input.flac"
(needs the flac package)
@erwanosouf
erwanosouf / Page.emmet
Last active November 23, 2016 21:39
Emmet line to expand a full webpage
(header>h1{HEADER})+(nav>ul>li{Item $}*5)+(div.wrapper>(main>(article#article$>(h2{Titre $}+p>(img+{lorem100})))*4)+(aside.summary>(ul>(li>a[href="#article$"]{Article $})*4))+(aside.ads>h2{Publicité}))+footer>h3{FOOTER}