Skip to content

Instantly share code, notes, and snippets.

View rnwilson's full-sized avatar

Nathan Wilson rnwilson

  • New Orleans, LA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rnwilson on github.
  • I am rnwilson (https://keybase.io/rnwilson) on keybase.
  • I have a public key ASBu2yQ0leiX98wf48dE2u8Hlrh9r3Nzs9sHPYTMrh274Ao

To claim this, I am signing this object:

apt-get -y update
apt-get -y upgrade
curl -fsSL get.docker.com -o /tmp/get-docker.sh && sh /tmp/get-docker.sh
wget https://dl.bintray.com/docker-compose/master/docker-compose-Linux-x86_64 -O /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
# Node.js
wget https://nodejs.org/dist/latest-v10.x/node-v10.6.0-linux-x64.tar.xz -O /tmp/node.tar.xz && tar -C /usr/local -xf /tmp/node.tar.xz --strip-components=1
# Go
wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz -O /tmp/go.tar.gz && tar -C /usr/local -xzf /tmp/go.tar.gz
echo PATH=$PATH:/usr/local/go/bin >> /etc/profile.d/env_load.sh
@rnwilson
rnwilson / .bash_aliases
Created July 16, 2018 08:14
bash_aliases shell
if [ -f ~/.docker_aliases ]; then
. ~/.docker_aliases
fi
#common
alias cls='clear'
alias ipaddr='curl ifconfig.me'
## pass options to free ##
alias meminfo='free -m -l -t'
@rnwilson
rnwilson / .docker_aliases
Last active July 16, 2018 08:17
docker aliases
# .docker_aliases
alias dm='docker-machine'
alias dmx='docker-machine ssh'
alias dk='docker'
alias dki='docker images'
alias dks='docker service'
alias dkrm='docker rm'
alias dkl='docker logs'
alias dklf='docker logs -f'
alias dkflush='docker rm `docker ps --no-trunc -aq`'
export PATH=$PATH:/usr/local/go/bin
#common
alias cls='clear'
alias ipaddr='curl ifconfig.me'
## pass options to free ##
alias meminfo='free -m -l -t'
## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
#cloud-config
# https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-config.txt
package_update: true
runcmd:
# Docker
- curl -fsSL get.docker.com -o /tmp/get-docker.sh && sh /tmp/get-docker.sh
- wget https://dl.bintray.com/docker-compose/master/docker-compose-Linux-x86_64 -O /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
# Node.js
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@rnwilson
rnwilson / ssh-tunnel-snippet.txt
Created April 29, 2018 10:30
ssh tunnel snippit
ssh -D 8123 -f -C -q -N [email protected]
run locally then connect ssh to remote host for proxy
@rnwilson
rnwilson / README.md
Created April 29, 2018 10:24 — forked from bobuss/README.md
Setup a Redis Cluster using docker-machine