- SC1000 $ is not used specially and should therefore be escaped.
- SC1001 This
\o
will be a regular 'o' in this context. - SC1003 Want to escape a single quote? echo 'This is how it'\''s done'.
- SC1004 This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
- SC1007 Remove space after = if trying to assign a value (or for empty string, use var='' ... ).
- SC1008 This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify.
- SC1009 The mentioned parser error was in ...
- SC1010 Use semicolo
Just run:
curl -ks https://gist.github.com/nicerobot/5652802/raw/install.sh | bash -
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
#!/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' |
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
#!/bin/bash | |
(( ${#} >= 3 )) || { echo "usage: $(basename ${0}) github-username archive-file [files | directories]"; exit 1; } | |
exec >${2} | |
zero='${0}' | |
cat <<SCRIPT | |
#!/usr/bin/env bash | |
usage() { | |
echo "usage: bash ${zero} identity-file" |
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
#!/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' |
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
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
#!/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 |
A site served from GitHub Gists, it's a
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
#!/bin/bash | |
# Run this: | |
# | |
# curl https://gist.github.com/nicerobot/7664605/raw/install.sh | bash -s do-sudo | |
# | |
# which will run: | |
[ -f qgis2-homebrew-build.sh ] || { | |
curl -O https://gist.github.com/nicerobot/7664605/raw/qgis2-homebrew-build.sh |
NewerOlder