Skip to content

Instantly share code, notes, and snippets.

View courtney-rosenthal's full-sized avatar

Courtney Rosenthal courtney-rosenthal

View GitHub Profile
@courtney-rosenthal
courtney-rosenthal / photo-albums-2017-tokyo.md
Last active May 27, 2018 17:01
2017 Tokyo photo albums
@courtney-rosenthal
courtney-rosenthal / bkup-openwrt.sh
Created July 5, 2016 03:33
Perform a backup of an OpenWRT router.
#!/bin/sh
#
# Perform a backup of an OpenWRT router.
#
USAGE="usage: $0 [-v] [-i sshIdentityFile] host backupDir"
iflag=
xflag=
@courtney-rosenthal
courtney-rosenthal / svnignore
Created March 29, 2016 15:21
Apply the Subversion svn:ignore property to files.
#!/bin/sh
#
# svnignore - Apply the Subversion svn:ignore property to files.
#
# Chip Rosenthal
# [email protected]
USAGE="usage: $0 FILE ..."
case "$1" in
@courtney-rosenthal
courtney-rosenthal / countdown
Created March 29, 2016 15:18
Display a text countdown for a given number of seconds.
#!/bin/bash
#
# countdown - Display a text countdown for a given number of seconds.
#
# Chip Rosenthal
# [email protected]
USAGE="usage: $0 secs"
if [[ $# -ne 1 ]] ; then
@courtney-rosenthal
courtney-rosenthal / email-tunnel
Created March 29, 2016 15:14
Create a tunnel for email service, e.g. to get POP/IMAP through outbound port filters
#!/bin/sh
#
# email-tunnel - create a tunnel for email service, e.g. to get POP/IMAP through outbound port filters
#
# Prerequisites: daemon, ssh
#
# Uses the LocalForward feature of ssh.
#
# You'll need an "email-tunnel" entry in your .ssh/config file. Something like:
#