This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
alias gf="git fetch" | |
function gwco { | |
number="$1" | |
# all branches | get origin/number_* | remove remotes/ | remove origin/ | 1st line| strip | |
branch=$(git branch -a | grep -F "origin/${number}_" | sed 's/remotes\///' | sed 's/origin\///' | head -1 | awk '{print $1}') | |
git checkout "${branch}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# template script for generating CentOS container for LXC | |
# | |
# | |
# lxc: linux Container library | |
# Authors: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PATH="$HOME/projects/dockey/bin:$PATH" | |
export LXC_PATH="/var/lib/lxc/" | |
export LXC_PREFIX="/home/user/projects/lxc/src/lxc/" | |
function _base { | |
if [[ "$1" = "install" ]]; then | |
[[ -x "$LXC_PATH/$DOCKEY_NAME" ]] || dockey create | |
dockey start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LANG=en_US.UTF-8 service postgresql-9.3 initdb en_US.UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get -qq -y --force-yes install gcc libpcre++-dev libcurl4-openssl-dev libxml2-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libmcrypt-dev libmysql++-dev autoconf libevent-dev libltdl-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Step 1: Clone the bundles into your Sublime Text packages directory | |
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages | |
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript | |
git clone https://github.com/miksago/jade-tmbundle.git Jade | |
git clone https://github.com/LearnBoost/stylus.git Stylus | |
### Step 2: Restart Sublime Text 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo tc qdisc add dev eth0 root tbf rate 128kbit latency 500ms burst 2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin transition($x) { | |
transition: #{$x}; | |
-o-transition: #{$x}; | |
-moz-transition: #{$x}; | |
-webkit-transition: #{$x}; | |
} | |
ul.tabs { | |
list-style: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spec/support/devise.rb | |
module Devise::RoutingTestHelpers | |
attr_accessor :request | |
def initialize(*args) | |
@request ||= Hashie::Mash.new env: {} | |
super(*args) | |
end |