Skip to content

Instantly share code, notes, and snippets.

View jgillman's full-sized avatar

Joel Gillman jgillman

View GitHub Profile
@jgillman
jgillman / tmux_build_from_source_CentOS.sh
Created October 19, 2017 16:35 — forked from P7h/tmux__CentOS__build_from_source.sh
tmux 2.0 and tmux 2.3 installation steps for Ubuntu. Or build from tmux source v2.5 for Ubuntu and CentOS.
# Steps to build and install tmux from source.
# Takes < 25 seconds on EC2 env [even on a low-end config instance].
VERSION=2.5
sudo yum -y remove tmux
sudo yum -y install wget tar libevent-devel ncurses-devel
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz
tar xzf tmux-${VERSION}.tar.gz
rm -f tmux-${VERSION}.tar.gz
cd tmux-${VERSION}
@jgillman
jgillman / pre-commit.sh
Last active August 29, 2015 14:01 — forked from alexbevi/pre-commit.sh
Git pre-commit hook to check all staged Ruby (*.rb/haml/js/coffee) files for debug statements
#!/bin/sh
#
# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files
# for Pry binding references
#
# Installation
#
# cd .git/hooks
# ln -s relative/path/to/pre-commit.sh
#
class GoogleAnalytics
@init: (webPropertyId) ->
@_initQueue(webPropertyId)
scriptTag = @_createScriptTag()
@_injectScriptTag(scriptTag)
@_initQueue: (webPropertyId) ->
window._gaq ?= []
window._gaq.push ['_setAccount', webPropertyId]
window._gaq.push ['_trackPageview']
@jgillman
jgillman / input.scss
Created July 2, 2012 21:40 — forked from twe4ked/input.scss
FREE! Sass (SCSS) mixin for including retina images in Webkit and Mozilla browsers.
@mixin background-image-retina($file, $type, $width, $height:$width) {
background-image: url($file + '.' + $type);
@media all and (-webkit-min-device-pixel-ratio: 2), all and (-moz-min-device-pixel-ratio: 2) {
& {
background-image: url($file + '@2x.' + $type);
-webkit-background-size: $width $height;
-moz-background-size: $width $height;
background-size: $width $height;
}