Skip to content

Instantly share code, notes, and snippets.

99% less Starbucks

Thomas Dohmke ashtom

99% less Starbucks
  • GitHub Staff
  • Seattle, USA
Block or report user

Report or block ashtom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View year-to-date workouts
‍🏃‍♂️ 445km ██████████░░░░░░░░░░
🏂 243km █████▍░░░░░░░░░░░░░░
🚶‍♂️ 184km ████░░░░░░░░░░░░░░░░
🥾 6km ░░░░░░░░░░░░░░░░░░░░
876km total
View year-to-date workouts
🏃‍♂️ 297.85 km ███████████████████
🏊‍♂️ 0.00 km ░░░░░░░░░░░░░░░░░░░
🚴‍♂️ 0.00 km ░░░░░░░░░░░░░░░░░░░
🗓 14.65 km
View firefly
Kaylee: So, um, how come you
don’t care where you’re going?
Book: ‘Cause how you get there
is the worthier part.
View gist:10455397
### Keybase proof
I hereby claim:
* I am ashtom on github.
* I am ashtom ( on keybase.
* I have a public key whose fingerprint is E34B 112A 5FA7 D46A 7455 9E11 6E71 8750 737E 08F6
To claim this, I am signing this object:
ashtom / log_reqresp.rb
Created May 12, 2012
Log ActiveResource request / response
View log_reqresp.rb
class ActiveResource::Connection
def http
# Setup http object
http =, @site.port)
http.use_ssl = @site.is_a?(URI::HTTPS)
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl
http.read_timeout = @timeout if @timeout
# Log to stderr
http.set_debug_output $stderr
ashtom / download_stats.rb
Created Apr 13, 2012
Download App Stats from HockeyApp
View download_stats.rb
require "json"
require "rest-client"
# Replace with your values
API_TOKEN = "API_TOKEN" # Needs rw rights
response = RestClient.get "#{BASE_URL}#{APP_ID}/app_versions", {"X-HockeyAppToken" => API_TOKEN}
app_versions = JSON.parse(response)
ashtom / upload.rb
Created Apr 9, 2012
Bulk Upload Crashes to HockeyApp
View upload.rb
require 'rubygems'
require 'rest_client'
# Replace with your values
files = Dir.glob("*.crash")
ashtom / gist:2049389
Created Mar 16, 2012
Sort by pubDate
View gist:2049389
#import <Foundation/Foundation.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSDictionary *one = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:1], @"pubDate", nil];
NSDictionary *two = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:2], @"pubDate", nil];
NSDictionary *three = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:3], @"pubDate", nil];
NSArray *array = [NSArray arrayWithObjects:three, one, two, nil];
ashtom /
Created Mar 1, 2012
Example Application class for HockeyApp and ACRA
import org.acra.ACRA;
import org.acra.annotation.ReportsCrashes;
// Replace APP_ID with your App ID on HockeyApp
public class MyApplication extends Application {
You can’t perform that action at this time.