Just run:
curl -ks https://gist.github.com/nicerobot/5652802/raw/install.sh | bash -
Just run:
curl -ks https://gist.github.com/nicerobot/5652802/raw/install.sh | bash -
\o will be a regular 'o' in this context.| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| (( ${#} >= 3 )) || { echo "usage: $(basename "${0}") github-username archive-file [files | directories]" >&2; exit 1; } | |
| username="${1}" | |
| outfile="${2}" | |
| shift 2 |
| #!/bin/bash | |
| curl -ks https://gist.githubusercontent.com/nicerobot/1622504/raw/gist-backup.py | USER=${USER} python3 |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| # look and feel | |
| caption always "%{= bb}%{+b w}%h %=%{=b rw} %l %{= db} ${USER}@%H %{= dg}%c" | |
| hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" | |
| # skip the startup message | |
| startup_message off | |
| # go to home dir | |
| chdir |
| #!/bin/bash -e | |
| # wait-for-postgres.sh | |
| # Adapted from https://docs.docker.com/compose/startup-order/ | |
| # Expects the necessary PG* variables. | |
| until psql -c '\l'; do | |
| echo >&2 "$(date +%Y%m%dt%H%M%S) Postgres is unavailable - sleeping" | |
| sleep 1 | |
| done |
| #!/bin/sh | |
| 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' |
| #!/bin/zsh | |
| # expects https://github.com/ahmetb/kubectl-aliases | |
| # implements lots of https://kubernetes.io/docs/reference/kubectl/cheatsheet/ | |
| alias kgpos='kgpo --sort-by=.metadata.creationTimestamp' | |
| alias kgpoy='kgpo -o yaml' | |
| ### config view | |
| alias kcv='k config' |