Skip to content

Instantly share code, notes, and snippets.

View mbmccormick's full-sized avatar

Matt McCormick mbmccormick

View GitHub Profile
@mbmccormick
mbmccormick / gist:799682
Created January 28, 2011 02:02
Standard method for reading from STDIN.
read oldrev newrev refname
@mbmccormick
mbmccormick / pal2.sh
Created February 4, 2011 18:10
Connect your Google Cr-48 laptop to PAL2.0 at Purdue.
shell
sudo su
wpa_cli
add_network # using the number returned by this command as XX below...
set_network XX ssid "PAL2.0"
set_network XX scan_ssid 1
set_network XX proto WPA
set_network XX priority 1
set_network XX key_mgmt WPA-EAP
set_network XX eap PEAP
@mbmccormick
mbmccormick / pal2.sh
Created February 5, 2011 16:44
Automated script to connect your Google Cr-48 laptop to PAL2.0 at Purdue.
NETWORK=$(wpa_cli -i wlan0 add_network) || exit
read -p "Username: " USERNAME || exit
wpa_cli -i wlan0 set_network $NETWORK ssid \"PAL2.0\" > /dev/null || exit
wpa_cli -i wlan0 set_network $NETWORK scan_ssid 1 > /dev/null || exit
wpa_cli -i wlan0 set_network $NETWORK proto WPA > /dev/null || exit
wpa_cli -i wlan0 set_network $NETWORK priority 1 > /dev/null || exit
wpa_cli -i wlan0 set_network $NETWORK key_mgmt WPA-EAP > /dev/null || exit
wpa_cli -i wlan0 set_network $NETWORK eap PEAP > /dev/null || exit
@mbmccormick
mbmccormick / gist:827025
Created February 15, 2011 03:00
Install automated script for PAL2.0 connection on Google Cr-48 laptop (gist: 812579).
shell
sudo su
cd /mnt/stateful_partition/home/chronos/user/
wget http://mbmccormick.com/files/pal2.sh
chmod +x pal2.sh
@mbmccormick
mbmccormick / gist:827049
Created February 15, 2011 03:28
Usage instructions for automated PAL2.0 connection script (gist: 812579).
shell
cd ~
sudo su
bash pal2.sh
@mbmccormick
mbmccormick / gist:860286
Created March 8, 2011 14:02
Deploying an Application to AppHarbor in 10 Minutes
git remote add appharbor https://[email protected]/returnflix.git
git push appharbor master
@mbmccormick
mbmccormick / out.txt
Created March 8, 2011 14:05
msysGit Error Setting Certificate Verify Locations
$ git push appharbor master
error: error setting certificate verify locations:
CAfile: /bin/curl-ca-bundle.crt
CApath: none
while accessing https://[email protected]/returnflix.git/info/regs
@mbmccormick
mbmccormick / gist:860295
Created March 8, 2011 14:08
Error Setting Certificate Verify Locations Fix
git config --global http.sslcainfo "C:/Program Files (x86)/Git/bin/curl-ca-bundle.crt"
@mbmccormick
mbmccormick / gist:941666
Created April 26, 2011 01:56
Windows 7 login screen customization
HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background\OEMBackground
/// <summary>
/// HawaiiClient stores the Hawaii Application Id.
/// </summary>
public static class HawaiiClient
{
/// <summary>
/// The Hawaii Application Id.
/// Please go to http://hawaiiguidgen.cloudapp.net/default.aspx,
/// obtain a Hawaii Application Id and set HawaiiApplicationId to that value.
/// </summary>