Skip to content

Instantly share code, notes, and snippets.

@jonlong
jonlong / raspi-wifi-config.md
Last active December 29, 2015 02:59
Configuring Raspberry Pi WiFi settings from the command line

Useful for when you're setting up a new wifi-enabled RPi without an external monitor/keyboard. The best way to do this is by using a TTY to Serial Cable, per the instructions here: http://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/

Note that this only works for non-hidden networks.

  sudo nano /etc/network/interfaces

For regular networks, replace whatever's in there with this:

@jonlong
jonlong / archive-and-restore-from-github.md
Created August 12, 2013 15:01
Archive/Restore Git Repos to/from GitHub

Archive a GitHub Repository

git clone --bare git@github.com:jonlong/<repo>.git
tar -czf <repo>.git.tar.gz <repo>.git

Deploy an Archived Repository to GitHub

Create a new private repository on the target account:

curl -F 'login=' -F 'token=' -F 'name=jonlong/' -F 'public=0' http://github.com/api/v2/json/repos/create