Skip to content

Instantly share code, notes, and snippets.

View raid5's full-sized avatar

Adam McDonald raid5

View GitHub Profile

Keybase proof

I hereby claim:

  • I am raid5 on github.
  • I am raid5 (https://keybase.io/raid5) on keybase.
  • I have a public key whose fingerprint is 4837 E525 CA99 7F0C 373B 9C56 AAAC 60BC F10E CD70

To claim this, I am signing this object:

@raid5
raid5 / droid_send_gps.sh
Created April 2, 2010 18:35
Script for sending GPS coordinates to the Android emulator
#!/usr/bin/expect --
# Test expect script to telnet.
spawn telnet localhost 5554
expect "OK"
send "geo fix -122.03180 37.33081\r"
expect "OK"
send "exit\r"
# end of expect script.
def index
#@activity = Activity.find(params[:activity_id])
#@accomplishments = @activity.accomplishments.completed.paginate :per_page => 4, :page => params[:page], :order => "created_at DESC"
@accomplishments = Accomplishment.completed.paginate :per_page => 4, :page => params[:page], :order => "created_at DESC"
end
node.js:278
var cwd = process.cwd();
^
Error: No such file or directory
at Function.resolveArgv0 (node.js:278:23)
at startup (node.js:22:13)
at node.js:432:3
@raid5
raid5 / android_rsync.sh
Created March 27, 2011 01:58
A simple shell script to sync media to my Atrix (android) phone.
#!/bin/sh
RSYNC_DEFAULT_OPTIONS="-r -t -v -L --ignore-existing --delete --stats --progress"
RSYNC_TEMP_DIR="./tmp_rsync_dir/"
# Sources
ITUNES_PODCASTS_DIR="/Users/adam/Music/iTunes/iTunes Music/Podcasts/"
ITUNES_MUSIC_DIR="/Users/adam/Music/iTunes/iTunes Music/"
ALBUMS=(
"Bone Thugs-N-Harmony/Strength & Loyalty"
@raid5
raid5 / Wha?
Created December 14, 2012 18:26 — forked from anonymous/Wha?
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
for (UITouch* t in touches)
{
[self updateGameStatusWithPoint:[t locationInView:self]];
}
}
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.AbstractCollection;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import android.media.AudioManager;
import android.media.MediaPlayer;
@raid5
raid5 / rinkeby.txt
Created July 30, 2017 22:38
rinkeby faucet
0xC104ab95959104b6b1978044486e9186fCa5F9dF
0xC104ab95959104b6b1978044486e9186fCa5F9dF
Verifying my Blockstack ID is secured with the address 15WndKeKkqFRxp6nogiqc4EWwTWatfwsxR https://explorer.blockstack.org/address/15WndKeKkqFRxp6nogiqc4EWwTWatfwsxR