Skip to content

Instantly share code, notes, and snippets.

@rbrooks
rbrooks / gist:2512905
Created April 27, 2012 20:41
Changelog Generator
#!/usr/bin/env ruby
# Changelog Generator
# Right now, this is date-based.
# TODO: Changelog between two Tags, eg: --tags=1.0.0..1.0.1
from_date = ARGV[0]
cmd = `git log --no-merges --since='#{from_date}' --pretty='format:%ci::%an <%ae>::%s'`.split /\n/
@rbrooks
rbrooks / gist:2480247
Created April 24, 2012 14:54
jQuery from Chrome Console
// Paste these 7 lines into Chrome JS console.
var script = document.createElement("script");
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
@rbrooks
rbrooks / gist:2124882
Created March 19, 2012 19:17
SSH - Forward Tunnel
# Use Case
# --------
# You have solely SSH (port 22) access to a box on a remote LAN.
# You have no Admin access to the firewall to forward ports.
# You need to browse the website on the box via a Web browser.
# From your local, desktop machine:
sudo ssh -NL 80:localhost:80 root@<IP or hostname>