Skip to content

Instantly share code, notes, and snippets.

View sbma44's full-sized avatar

Tom Lee sbma44

View GitHub Profile
Host 192.168.1.*
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
@sbma44
sbma44 / gist:6754744
Last active December 24, 2015 06:09
time machine instructions (this is a crontab entry that will record WAMU's Big Broadcast show to an appropriately-named directory on a stock Amazon Linux AMI)
0 19 * * 0 rtmpdump -B 14400 -v -r "rtmp://wamu-fla.streamguys.com/live" --playpath WAMU-1 -o /home/ec2-user/big_broadcast/`date +%y-%m-%d`-big-broadcast.flv
@sbma44
sbma44 / gist:7739920
Created December 1, 2013 19:51
iptable configuration for raspberry pi ipredator vpn
# Generated by iptables-save v1.4.14 on Sun Dec 1 13:49:10 2013
*nat
:PREROUTING ACCEPT [329:25039]
:INPUT ACCEPT [194:13371]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o tun0 -j MASQUERADE
COMMIT
# Completed on Sun Dec 1 13:49:10 2013
# Generated by iptables-save v1.4.14 on Sun Dec 1 13:49:10 2013
@sbma44
sbma44 / gist:8061648
Created December 20, 2013 21:15
Roomba hello world
/*
* RoombaBumpTurn
* --------------
* Implement the RoombaComm BumpTurn program in Arduino
* A simple algorithm that allows the Roomba to drive around
* and avoid obstacles.
*
* Arduino pin 0 (RX) is connected to Roomba TXD
* Arduino pin 1 (TX) is connected to Roomba RXD
* Arduino pin 2 is conencted to Roomba DD
/*
* RoombaBumpTurn
* --------------
* Implement the RoombaComm BumpTurn program in Arduino
* A simple algorithm that allows the Roomba to drive around
* and avoid obstacles.
*
* Arduino pin 0 (RX) is connected to Roomba TXD
* Arduino pin 1 (TX) is connected to Roomba RXD
* Arduino pin 2 is conencted to Roomba DD
@sbma44
sbma44 / gist:8188475
Created December 30, 2013 21:30
working NAT iptables configuration
# Generated by iptables-save v1.4.14 on Sun Dec 1 13:49:10 2013
*nat
:PREROUTING ACCEPT [329:25039]
:INPUT ACCEPT [194:13371]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Sun Dec 1 13:49:10 2013
# Generated by iptables-save v1.4.14 on Sun Dec 1 13:49:10 2013
@sbma44
sbma44 / gist:8188482
Created December 30, 2013 21:31
non-working iptables tunnel config
# Generated by iptables-save v1.4.14 on Sun Dec 1 13:49:10 2013
*nat
:PREROUTING ACCEPT [329:25039]
:INPUT ACCEPT [194:13371]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o tun0 -j MASQUERADE
COMMIT
# Completed on Sun Dec 1 13:49:10 2013
# Generated by iptables-save v1.4.14 on Sun Dec 1 13:49:10 2013
@sbma44
sbma44 / gist:8188649
Last active January 1, 2016 19:09
openvpn server configuration
#################################################
# Sample OpenVPN 2.0 config file for #
# multi-client server. #
# #
# This file is for the server side #
# of a many-clients one-server #
# OpenVPN configuration. #
# #
# OpenVPN also supports #
# single-machine single-machine #
@sbma44
sbma44 / gist:8188997
Created December 30, 2013 22:02
comment-less openVPN server.conf
port 1194
proto udp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key # This file should be kept secret
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
@sbma44
sbma44 / gist:8189020
Created December 30, 2013 22:03
openvpn client call (raspberry pi)
openvpn --client --dev tun --proto udp --remote xxx.xxx.xxx.xxx 1194 --resolv-retry infinite --nobind --persist-key --persist-tun --ca ca.crt --cert client.crt --key client.key --comp-lzo --verb 3 --cd /home/pi/Devel/wormhole/openvpn