create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
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".
RSpec::Matchers.define :translate do |field, locales| | |
match do |model| | |
@field = field | |
@locales = locales | |
@results = [] | |
@failures = [] | |
locales.each do |locale| | |
expected_value = locale_value(locale) |
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) -> |