Skip to content

Instantly share code, notes, and snippets.

View iwaffles's full-sized avatar

Matt Gardner iwaffles

View GitHub Profile
## The quick-and-nasty CVE-2013-0156 Heroku inspector!
## Originally brought to you by @elliottkember with changes by @markpundsack @ Heroku
## Download and run using:
## ruby heroku-CVE-2013-0156.rb
`heroku list`.split("\n").each do |app|
app = app.strip
# Some "heroku apps" lines have === formatting for grouping. They're not apps.
next if app[0..2] == "==="
@iwaffles
iwaffles / diggdigg-style.css
Created January 15, 2013 03:46
Change the background of Digg Digg from White to Black.
#dd_ajax_float {
text-align:center;
border:1px solid #bbb;
min-width:55px;
width:auto;
-webkit-border-top-right-radius:5px;
-webkit-border-bottom-right-radius:5px;
-webkit-border-bottom-left-radius:5px;
-webkit-border-top-left-radius:5px;
-moz-border-radius-topright:5px;
@iwaffles
iwaffles / waitForJquery.js
Created January 9, 2013 07:51
Wait for jQuery to be loaded
var checker = 0;
function jqueryLoaded() {
clearInterval(checker);
console.log("jquery is loaded!");
}
function waitForJquery() {
if (window.jQuery) {
jqueryLoaded();
@iwaffles
iwaffles / .zshrc
Created January 8, 2013 22:18
Resume in terminal when using zsh instead of the default (bash).
# I found this here: http://superuser.com/questions/313650/resume-zsh-terminal-os-x-lion/328148
# Tell the terminal about the working directory whenever it changes.
if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
update_terminal_cwd() {
# Identify the directory using a "file:" scheme URL, including
# the host name to disambiguate local vs. remote paths.
# Percent-encode the pathname.
local URL_PATH=''