Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am leppert on github.
  • I am leppert (https://keybase.io/leppert) on keybase.
  • I have a public key whose fingerprint is CBEB 9606 9A80 56F2 F14E 2668 D41E 8D45 CF4F 998E

To claim this, I am signing this object:

diff --git a/bin/console.sh b/bin/console.sh
index ba528a8..3a133fa 100644
--- a/bin/console.sh
+++ b/bin/console.sh
@@ -3,24 +3,10 @@
# Copyright (c) 1999-2010 Luca Garulli
#
-# resolve links - $0 may be a softlink
-PRG="$0"
@leppert
leppert / homebrew.patch
Last active December 16, 2015 17:09
Homebrew OrientDB Formula patch, modified for OrientDB 1.3.0 from https://gist.github.com/kavu/3965837
diff --git a/bin/console.sh b/bin/console.sh
index 72a45ca..0730e0f 100755
--- a/bin/console.sh
+++ b/bin/console.sh
@@ -3,24 +3,10 @@
# Copyright (c) 1999-2010 Luca Garulli
#
-# resolve links - $0 may be a softlink
-PRG="$0"
@leppert
leppert / aws_slanger_setup.sh
Created November 6, 2012 20:38
AWS Slanger Setup
#!/bin/bash
# Update all packages on the server
sudo yum -y update
# Set the timezone
sudo ln -sf /usr/share/zoneinfo/America/New_York \/etc/localtime
# Install Dev Tools
sudo yum -y groupinstall 'Development Tools'
###################################################
@leppert
leppert / svpply.js
Created April 30, 2012 21:23
Parsing Svpply referrer links
var svpply = function(referrer){
var params = {};
if(referrer.substring(0, 17) === 'http://svpply.com'){
var e,
a = /\+/g,
r = /([^&=]+)=?([^&]*)/g,
d = function(s){ return decodeURIComponent(s.replace(a, " ")); },
q = referrer.split('?')[1];
while (e = r.exec(q))
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<title>IE8 Print Crash</title>
<style type="text/css">