Skip to content

Instantly share code, notes, and snippets.

@ericgibb
ericgibb / uri.js
Last active August 29, 2015 14:22 — forked from jlong/uri.js
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@ericgibb
ericgibb / Chef Bootstrap Ruby 1.9.3-p194
Created September 26, 2012 15:30 — forked from tjsingleton/Chef Solo Bootstrap with Ruby 2.2.2
Chef Solo Bootstrap with Ruby 1.9.3-p194
#!/usr/bin/env bash
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
apt-get -y install autoconf curl git-core bzip2
apt-get -y autoremove
apt-get -y clean
cd /usr/local/src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p194.tar.gz
@ericgibb
ericgibb / digications_jenkins.css
Created September 12, 2012 17:29
Digication Jenkins CI Theme
body{
background: #eeeeee;
color: black;
}
@ericgibb
ericgibb / index.html
Created August 15, 2012 15:28 — forked from anonymous/index.html
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- IF PEN IS PRIVATE -->
<!-- <meta name="robots" content="noindex"> -->
<!-- END -->
@ericgibb
ericgibb / brew_setup.sh
Created May 1, 2012 19:21
Installs Brew, Ruby, MySql, and other helpful utilities
# if ask "Do you want to do something?"; then
# echo "Yes"
# else
# echo "No"
# fi
#
# # Default to No if the user presses enter without giving an answer:
# if ask "Do you want to do something?" N; then
# echo "Yes"
# else