Skip to content

Instantly share code, notes, and snippets.

View Eruant's full-sized avatar

Matt Gale Eruant

View GitHub Profile
@Eruant
Eruant / .bash_profile
Last active November 14, 2016 12:28
Run node with docker
# `node` run node 6
# `node 3000:8080` run node 6 exposing port 8080 to docker:3000
function node {
if [[ -n "$1" ]]; then
docker run -i \
-v $(pwd):/app \
-v $HOME/.ssh:/root/.ssh \
-w='/app' \
-p $1 \
-t node:6 bash
### Keybase proof
I hereby claim:
* I am Eruant on github.
* I am mattgale (https://keybase.io/mattgale) on keybase.
* I have a public key whose fingerprint is 6446 F460 8DE4 8D12 9808 9E06 C3CC 2305 FC62 98A9
To claim this, I am signing this object:
{
"presets": [
"es2015-rollup",
"react"
]
}
@Eruant
Eruant / .bash_profile
Last active August 29, 2015 14:21
Dot Files
export PATH="/usr/local/bin:$PATH"
export PATH=/usr/local/sbin:$PATH
alias vim='mvim -g'
alias la='ls -lGAp'
alias ll='ls -lGp'
alias e='mvim'
alias c='clear'
alias server='python -m SimpleHTTPServer'
@Eruant
Eruant / external.js
Created October 12, 2012 10:34
Load external links in new window / tab
function set_external_links() {
$('a[href^=http]').not('a[href^="'+window.location.protocol+'//'+window.location.host+'"]').click(function(e){
e = window.event || e; if(e.preventDefault) e.preventDefault(); else e.returnValue = false;
window.open(this.href); return false;
});
}