This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ _$1 == _ ] | |
then | |
echo "Usage: $0 <output_if>" | |
exit 1 | |
fi | |
sysctl -w net.ipv4.ip_forward=1 | |
iptables -t nat -A POSTROUTING -o $1 -j MASQUERADE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# This script uses mido <https://pypi.python.org/pypi/mido/1.1.3> to | |
# transform a midi file into a C structure to be played by a | |
# microcontroller firmware for example | |
from mido import MidiFile | |
import sys | |
if len(sys.argv) != 2: |
NewerOlder