Skip to content

Instantly share code, notes, and snippets.

View bdnelson's full-sized avatar

Brian Nelson bdnelson

  • Purple Wave
  • Omaha, NE, USA
  • 03:55 (UTC -05:00)
View GitHub Profile
@bdnelson
bdnelson / set_android_sim_location.sh
Created October 25, 2016 16:17
Set Simulator GPS Location
#!/bin/bash
if [ $# -lt 2 ]; then
echo "$0 <latitude> <longitude> [altitude] [portNum]"
exit
fi
port="5554"
altitude="100"
auth_key=`cat $HOME/.emulator_console_auth_token | awk '{print $1}'`

Keybase proof

I hereby claim:

  • I am bdnelson on github.
  • I am bdnelson (https://keybase.io/bdnelson) on keybase.
  • I have a public key ASBYQZTV9GRj3Qybx0O6UDYZCDSX7cSGsOKvFgoKznFLTQo

To claim this, I am signing this object:

@bdnelson
bdnelson / emulator_set_current_location
Last active November 6, 2015 19:12
Expect script to set current location on Android Emulator (OS/X)
#!/usr/bin/env expect
# Command line args - default to port 5554
set port [lindex $argv 0]
if {$port == ""} {
set port "5554"
}
# Get the current location
set result [exec CoreLocationCLI -once yes -format "%longitude %latitude"]
Pod::Spec.new do |s|
s.name = "LTHPasscodeViewController"
s.version = "1.6.1"
s.summary = "iOS 7 style Passcode Lock"
s.homepage = "https://github.com/rolandleth/LTHPasscodeViewController"
s.screenshots =
"https://github-camo.global.ssl.fastly.net/f75ef08e3af272400ca2ce74b90b2d2ecd099d1d/687474703a2f2f726f6c616e646c6574682e636f6d2f6173736574732f696f73372d7374796c652d70617373636f64652f73637265656e73686f742e706e67",
"https://github-camo.global.ssl.fastly.net/4c2344eee8a3fd31e794be5e18be5fc073998915/687474703a2f2f726f6c616e646c6574682e636f6d2f6173736574732f696f73372d7374796c652d70617373636f64652f6368616e67652d70617373636f64652d73637265656e73686f742e706e67"
s.license = { :type => 'MIT', :file => 'LICENSE.txt' }