- Install Xcode (Avaliable on the Mac App Store)
- Install Xcode Command Line Tools (Preferences > Downloads)
- Install depot_tools
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ nano ~/.zshrc
- Add
path=('/path/to/depot_tools' $path)
This file contains hidden or 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
# this assumes your using oh-my-zsh for maximum zsh-ness | |
# info and defaults are here: | |
# https://github.com/robbyrussell/oh-my-zsh/blob/master/templates/zshrc.zsh-template | |
export LC_ALL="en_US.UTF-8" | |
export ZSH=/Users/bret/.oh-my-zsh | |
# custom prompt theme | |
ZSH_THEME="present" # mine is present, default is robbyrussell, also agnoster, fishy, ys, wild-cherry | |
COMPLETION_WAITING_DOTS="true" |
This file contains hidden or 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
const immutable = require('./immutable'); | |
let obj; | |
obj = immutable({ foo: 'bar' }); | |
obj.foo = 'baz'; // assignment fails silently | |
delete obj.foo; // delete fails silently | |
obj = immutable({ foo: [ 1, 2, 3 ] }); | |
obj.foo.push( 4 ); // mutation fails silently |
This file contains hidden or 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
# ~/.ssh/config | |
Host <custom-name> | |
HostName <remote-host> | |
User <remote-user> | |
Port <remote-ssh-port> | |
IdentityFile ~/.ssh/id_rsa | |
ForwardAgent yes | |
ProxyCommand ssh -o 'ForwardAgent yes' <proxy-user>@<proxy-host> 'ssh-add && nc %h %p' |
This file contains hidden or 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or 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
var net = require("net") | |
, dns = require("dns") | |
, exp = require("express") | |
, app = exp(); | |
app.configure(function() { | |
app.use(exp.logger()); | |
app.use(app.router); | |
}); |