Skip to content

Instantly share code, notes, and snippets.

View cristobal's full-sized avatar
💭
¯\_(ツ)_/¯

Cristobal Dabed cristobal

💭
¯\_(ツ)_/¯
View GitHub Profile
/**
* Test for IE
* - http://blogs.msdn.com/giorgio/archive/2009/04/14/how-to-detect-ie8-using-javascript-client-side.aspx
* - http://blogs.msdn.com/mikeormond/archive/2008/09/25/ie-8-compatibility-meta-tags-http-headers-user-agent-strings-etc-etc.aspx
* - http://msdn.microsoft.com/en-gb/library/cc817572.aspx
* - http://stackoverflow.com/questions/5825385/javascript-can-i-detect-ie9-if-its-in-ie7-or-ie8-compatibility-mode
*/
if(window.ActiveXObject){
var rv = -1;
var ua = navigator.userAgent;
@cristobal
cristobal / ruby193-installer.sh
Last active August 29, 2015 14:01 — forked from futuremill-ltd/gist:2318876
Building Ruby 1.9.3 p545 package for Debian Squeeze
#!/usr/bin/env bash
# From a fresh install of squeeze
apt-get install ruby rubygems # Need ruby to use fpm
gem1.8 install fpm --no-ri --no-rdoc
apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev ncurses-dev libyaml-dev
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p545.tar.gz
tar -zxvf ruby-1.9.3-p545.tar.gz
cd ruby-1.9.3-p545