Skip to content

Instantly share code, notes, and snippets.

View Sophrinix's full-sized avatar

Andrew McElroy Sophrinix

View GitHub Profile
@Sophrinix
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
this script no longer works with the new twitter:
http://userscripts.org/scripts/show/43115
Here is a diff between the two html files. Matz twitter page is used in this example
# --------------------------------------------
# General
# --------------------------------------------
set :shared_children, %w(cache logs) # Shared directories, these directories contain generated content which should not be wiped out during deployments.
set :application, "domain.com" # Application name
set :deploy_to, "/var/www/#{application}/#{stage}" # Path where files are deployed to ...
# --------------------------------------------
# Server
# --------------------------------------------
# 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'
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
#!/usr/bin/env ruby
# This script performs an OAuth authorized POST with multipart encoding to
# http://twitter.com/account/update_profile_image.json
#
# This code is primarily taken from my Grackle library's implementation at
# http://github.com/hayesdavis/grackle
#
# RUNNING THIS WILL CHANGE AN ACCOUNT'S PROFILE IMAGE. BE CAREFUL.
#
@Sophrinix
Sophrinix / mindet output
Created October 25, 2009 02:22
output on pythinkgear for a few minutes
Last login: Sat Oct 24 21:06:31 on console
~/Desktop/pythinkgear/thinkgear$ python thinkgear.py
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
Loaded suite NestingLevelTest
Started
........
Finished in 0.030731 seconds.
8 tests, 9 assertions, 0 failures, 0 errors
Loaded suite TryRubyOutputTest
Started
.F.....
Finished in 0.002457 seconds.