Skip to content

Instantly share code, notes, and snippets.

View djcas9's full-sized avatar
🟣
Work

Dustin Willis Webber djcas9

🟣
Work
View GitHub Profile
We couldn’t find that file to show.
@djcas9
djcas9 / rails_sqli.rb
Last active December 10, 2015 22:58 — forked from postmodern/rails_sqli.rb
#!/usr/bin/env ruby
#
# Proof-of-Concept exploit for Rails SQL Injection (CVE-2013-0156)
#
# ## Advisory
#
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion
#
# ## Caveats
#
@djcas9
djcas9 / gist:3008610
Created June 28, 2012 03:04 — forked from seanlilmateus/gist:1461269
Macruby isight animated wall; press q to exit and any key to animate the wall
#!/usr/local/bin/macruby
framework 'QuartzCore'
framework 'AVFoundation'
class NSColor
def toCGColor
# approach #2
components = [redComponent, greenComponent, blueComponent, alphaComponent]
color_space = CGColorSpaceCreateWithName(KCGColorSpaceGenericRGB)