Skip to content

Instantly share code, notes, and snippets.

@lebarde
lebarde / discours.txt
Created June 18, 2012 23:25
Discours mariage Sylvie et Christian
discours
@lebarde
lebarde / install-maintenance
Last active February 19, 2022 16:32
Install-maintenance : setup a SSH tunnel (-R) to allow maintenance of unaccessible hosts.
#!/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 / midi-cyberbass.sh
Created April 29, 2013 12:23
To download automatically MIDI files from cyberbass.com :-)
#!/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 / md2htmlyaml
Last active April 30, 2018 04:02
Convert Markdown to HTML and leave the YAML verbatim (to use in Hugo)
#!/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`