Skip to content

Instantly share code, notes, and snippets.

View pwelch's full-sized avatar
:octocat:

Paul Welch pwelch

:octocat:
View GitHub Profile
@pwelch
pwelch / import.zsh
Created December 12, 2012 00:06 — forked from moutten/import.zsh
# This requires you install the command line tools from Amazon, and setup your Amazon credentials appropriately.
# - http://aws.amazon.com/developertools/351/
for region (us-east-1 us-west-1 us-west-2) ec2-import-keypair $USER -f ~/.ssh/id_rsa.pub --region $region
@pwelch
pwelch / print_folder_tk.rb
Created June 26, 2012 18:02
Ruby/Tk script with GUI to print a folder using a system call to lp (CUPS). (Requires cups gem)
#!/usr/bin/env ruby
require 'tk'
require 'tkextlib/tile'
require 'tkextlib/bwidget'
require 'cups'
$dirname = TkVariable.new
root = TkRoot.new {title "Print Folder"}
@pwelch
pwelch / ddwrt_wlan_cron
Created February 9, 2012 14:30
DD-WRT Cron job for WLAN
# Turn DD-WRT wireless radio on for business hours only. Verify wireless interface for your router model.
# Place in WebUI > Administration > Management > Cron
0 18 * * 1,2,3,4,5 root wl -i eth1 radio off
0 6 * * 1,2,3,4,5 root wl -i eth1 radio on