create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
For each Ruby module/class, we have Ruby methods on the left and the equivalent | |
Clojure functions and/or relevant notes are on the right. | |
For clojure functions, symbols indicate existing method definitions, in the | |
clojure namespace if none is explicitly given. clojure.contrib.*/* functions can | |
be obtained from http://github.com/kevinoneill/clojure-contrib/tree/master, | |
ruby-to-clojure.*/* functions can be obtained from the source files in this | |
gist. | |
If no method symbol is given, we use the following notation: |
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
#!/bin/bash | |
# Script to convert PDF file to JPG images | |
# | |
# Dependencies: | |
# * pdftk | |
# * imagemagick | |
PDF=$1 |
# Send a metric to statsd from bash | |
# | |
# Useful for: | |
# deploy scripts (http://codeascraft.etsy.com/2010/12/08/track-every-release/) | |
# init scripts | |
# sending metrics via crontab one-liners | |
# sprinkling in existing bash scripts. | |
# | |
# netcat options: | |
# -w timeout If a connection and stdin are idle for more than timeout seconds, then the connection is silently closed. |
" Run the current file in a ConqueTerm, great for ruby tests | |
let g:ConqueTerm_InsertOnEnter = 0 | |
let g:ConqueTerm_CWInsert = 1 | |
nmap <silent> <Leader>r :call RunRubyCurrentFileConque()<CR> | |
nmap <silent> <Leader>R :call RunRakeConque()<CR> | |
nmap <silent> <Leader>c :execute 'ConqueTermSplit script/console'<CR> | |
nmap <silent> <Leader>i :execute 'ConqueTermSplit pry'<CR> | |
nmap <silent> <Leader>b :execute 'ConqueTermSplit /bin/bash --login'<CR> | |
nmap <silent> <Leader>S :call RunRspecCurrentFileConque()<CR> |
Reluctantly crouched at the command line | |
keyboards clicking and clacking in time | |
the green bar flashes, the vim pops up | |
churning, and burning, they yearn for server up | |
they deftly maneuver and regex to rename | |
fingers flying fast keyboards in flame | |
reckless and wild, they commit and they push | |
their prowess is potent though they sit on their tush. | |
as they speed through the release, the deploy goes out | |
they all get up and pour themselves stout |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
So, to get something like /etc/rc.local
you can use the custom SMF import facility. (See the source
for more information about how this actually works.)
/opt
is mounted out of zones/opt
by default. You can create a directory /opt/custom/smf
and populate it with SMF manifests. Any manifests you put in there will be imported by SmartOS when it boots. Below is an example SMF manifest that simply starts /opt/custom/bin/postboot
, a self-explanatory shell script that you can use like /etc/rc.local
.
Note that it would likely be better to customise and respin your own images, as putting a bunch of platform state in the zones pool undoes some of the benefits of the ramdisk platform architecture that SmartOS has.
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: