Skip to content

Instantly share code, notes, and snippets.

View Sophrinix's full-sized avatar

Andrew McElroy Sophrinix

View GitHub Profile
Sophrinix / gist:70c757e8f1e4bf4578ff
Created May 12, 2014 18:37
Jenkins config for TiConf 2014 NY talk
View gist:70c757e8f1e4bf4578ff
cd ~/Desktop/ticonf2014testappdemo/alloytest
titanium clean
titanium build --platform=iphone --test &
sleep 30
killall "iPhone Simulator"
export PATH="/Users/andrewmcelroy/.rbenv/shims:/Applications/"
echo | titanium calabash --platform=iphone
Sophrinix / ios-sim
Created September 22, 2014 12:25
replace ios-sim with this file in titanium 3.3.0 to 3.0.0
View ios-sim
# you need to install npm install -g ios-sim before this will work
# there is an irony in the fact that ios-sim is phonegap's version, but it was forked from Jeff Haynie (CEO Appcelerator)
ios-sim $1 $2 $5 $6 $7 $8
Sophrinix / gist:40c8bb9ff14c4429615d
Created March 28, 2015 17:26
hyperloop-android wtf
View gist:40c8bb9ff14c4429615d
➜ hyperloop-android git:(master) ../hyperloop-cli/bin/hyperloop clean compile package launch --src=examples/touches --platform=android
[INFO] Cleaned build
[INFO] Generating library
[INFO] Generating system metabase will take up to a minute (or greater) depending on your environment.This file will be cached and will execute faster on subsequent builds.
◠ Generating system metabase
View gist:190033
Loaded suite NestingLevelTest
Finished in 0.030731 seconds.
8 tests, 9 assertions, 0 failures, 0 errors
Loaded suite TryRubyOutputTest
Finished in 0.002457 seconds.
Sophrinix / mindet output
Created October 25, 2009 02:22
output on pythinkgear for a few minutes
View mindet output
Last login: Sat Oct 24 21:06:31 on console
~/Desktop/pythinkgear/thinkgear$ python
No handlers could be found for logger "__main__.bytes"
DEBUG:__main__:discarding '\x02' while syncing
DEBUG:__main__:discarding '\x95' while syncing
DEBUG:__main__:discarding '\xe8' while syncing
DEBUG:__main__:bad checksum
DEBUG:__main__:putting back 60 bytes
DEBUG:__main__:discarding '\x02' while syncing
View update_profile_image.rb
#!/usr/bin/env ruby
# This script performs an OAuth authorized POST with multipart encoding to
# This code is primarily taken from my Grackle library's implementation at
View sandbox ruby 1.9 compile fail
sophrinix$ ./ruby ../why_sandbox/setup.rb
---> bin
<--- bin
---> lib
---> lib/sandbox
<--- lib/sandbox
<--- lib
---> ext
---> ext/sand_table
/usr/local/bin/ruby /Users/sophrinix/Desktop/why_sandbox/ext/sand_table/extconf.rb
View autobench_grapher.rb
# Used to graph results from autobench
# Usage: ruby autobench_grapher.rb result_from_autobench.tsv
# This will generate three svg & png graphs
require "rubygems"
require "scruffy"
require 'csv'
require 'yaml'
View PHP Capistrano Recipe.rb
# --------------------------------------------
# General
# --------------------------------------------
set :shared_children, %w(cache logs) # Shared directories, these directories contain generated content which should not be wiped out during deployments.
set :application, "" # Application name
set :deploy_to, "/var/www/#{application}/#{stage}" # Path where files are deployed to ...
# --------------------------------------------
# Server
# --------------------------------------------
Sophrinix / new-twitter-html-vs-old-twitter-html
Created April 15, 2011 16:00
a diff file between versions of twitter to get the twitter translate userscript working
View new-twitter-html-vs-old-twitter-html
this script no longer works with the new twitter:
Here is a diff between the two html files. Matz twitter page is used in this example