Skip to content

Instantly share code, notes, and snippets.

@lebarde
lebarde / md2htmlyaml
Last active Apr 30, 2018
Convert Markdown to HTML and leave the YAML verbatim (to use in Hugo)
View md2htmlyaml
#!/bin/sh
# This script converts a .md Markdown file into a HTML file.
# It takes advantage of Pandoc for that, but keeps the front
# matter verbatim in order to process it into Hugo.
# tmp file:
TMP=`mktemp`
@lebarde
lebarde / midi-cyberbass.sh
Created Apr 29, 2013
To download automatically MIDI files from cyberbass.com :-)
View midi-cyberbass.sh
#!/bin/sh
# Récupération des fichiers MIDI de cyberbass.com
ADRESSE=http://www.cyberbass.com/Major_Works/Bach_J_S/
FICHIER=bach_js_b_minor_mass.htm
wget $ADRESSE/$FICHIER
cat $FICHIER | grep -o CyberBassPlay\(\'.*\' | sed 's/CyberBassPlay('"'"'\(.*\)'"'"'/\1/g' > out.tmp
while read MIDFILE;
@lebarde
lebarde / install-maintenance
Last active Feb 19, 2022
Install-maintenance : setup a SSH tunnel (-R) to allow maintenance of unaccessible hosts.
View install-maintenance
#!/bin/sh
# SM (SSH Maintenance) v 1.0
# Script d'installation d'une clef ssh
# Configuration pour créer un pont ssh (-R) automatiquement
# afin de permettre un accès root sur la machine cible.
#
# Réalisé par Adrien poupin
VERSION=1.0
@lebarde
lebarde / discours.txt
Created Jun 18, 2012
Discours mariage Sylvie et Christian