Skip to content

Instantly share code, notes, and snippets.

@ChristianPeters
ChristianPeters / config-application.rb
Created April 16, 2012 12:29
Adapted for Rails Asset Pipeline: Split CSS files so that there are no more than a given number of selectors in one style sheet. This is a tool to cope with Internet Explorer's limitation of max. 4095 selectors per stylesheet.
#...
module MyProject
class Application < Rails::Application
config.assets.precompile += %w( ie6.css ie6_portion2.css ie7.css ie7_portion2.css ie8.css ie8_portion2.css ie9.css ie9_portion2.css)
#...
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@rcaetano
rcaetano / gist:993399
Created May 26, 2011 15:52
Scripts for setting up amazon EC2 instances to mine bitcoins
# miner_pool.sh - executes a script against each instance: ./mine_pool.sh setup.sh
# list your instances here
# use ami-12b6477b
INSTANCES="ec2-50-19-52-212.compute-1.amazonaws.com
ec2-50-16-126-107.compute-1.amazonaws.com
ec2-184-72-177-183.compute-1.amazonaws.com
ec2-50-17-126-57.compute-1.amazonaws.com
ec2-184-73-119-153.compute-1.amazonaws.com"