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
/* | |
- Implicit Binding | |
- Explicit Binding | |
- new Binding | |
- window Binding | |
*/ | |
// Implicit Binding | |
// Left of the Dot at Call Time | |
var Person = function (name, age) { |
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
mcn_name='prod' | |
apt_url='https://apt.dockerproject.org' | |
lsb_dist='ubuntu' | |
dist_version='trusty' | |
arch=$(docker-machine ssh ${mcn_name} dpkg --print-architecture) | |
repo='main' | |
docker-machine ssh ${mcn_name} "echo deb [arch=${arch}] ${apt_url}/repo ${lsb_dist}-${dist_version} ${repo} | sudo tee /etc/apt/sources.list.d/docker.list" | |
docker-machine ssh ${mcn_name} sudo apt-get update | |
docker-machine ssh ${mcn_name} sudo apt-get install -y docker-engine |
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
python -m SimpleHTTPServer 8888 |
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
function myPromise() { | |
let deferred = Q.defer() | |
myRequest(options, function (err, body)) { | |
if (err) { | |
deferred.reject(err) | |
} | |
deferred.resolve(body) |
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
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro -v /var/lib/docker:/var/lib/docker martin/docker-cleanup-volumes |
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
docker rmi -f $(docker images | grep none | awk '{print $3}') |
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
# AVIT ZSH Theme | |
PROMPT=' | |
$(_user_host)${_current_dir} $(git_prompt_info) $(_ruby_version) | |
🐑 💨 ' | |
PROMPT2='%{$fg[grey]%}🐑 💨 %{$reset_color%} ' | |
RPROMPT='$(_vi_status)%{$(echotc UP 1)%}$(_git_time_since_commit) $(git_prompt_status) ${_return_status}%{$(echotc DO 1)%}' |
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
// Declare internals | |
var internals = { | |
startX: null, | |
startY: null, | |
tap: false | |
}; | |
internals.setTap = function () { | |
internals.tap = true; | |
setTimeout(function () { |
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
elasticsearch: | |
image: elasticsearch | |
command: elasticsearch -Des.network.host=_non_loopback_ | |
ports: | |
- "9200:9200" |
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
SHELL=/bin/bash | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games | |
HOME=/ | |
MAILTO="[email protected]" | |
# Your crons |
NewerOlder