O'Reilly Awesome List
This project is maintained by oreillymedia
Read about how to contribute to this list!
Find your public IP address:
dig +short myip.opendns.com @resolver1.opendns.com
Lookup command examples:
curl -s cheat.sh/<command>
Zsh does not enable a builtin help
command, instead it provides run-help
. By default run-help
is an alias to man
and will only work on external commands. To use it for Zsh builtins and features, load and unalias the command in your .zshrc
.
autoload -Uz run-help
unalias run-help
alias help=run-help # for convenience
To remove duplicate lines from unsorted data:
echo "Apple\nOrange\nOrange \nBanana\nApple\nPineapple" > file1
awk '!a[$0]++' file1
Apple
Orange
Banana
Pineapple
To merge text files side-by-side:
echo "HEADER1\nData-1\nData-2" > file1
echo "HEADER2\nValue-1\nValue-2" > file1
paste file1 file2
HEADER1 HEADER2
Data-1 Value-1
Date-2 Value-2
.gitignore
-aware search toolcurl
commands into programs in other programming languagesList container tags:
# from DockerHub:
wget -q https://registry.hub.docker.com/v1/repositories/<container>/tags -O - | jq -r '.[].name'
# from GCR:
gcloud container images list-tags gcr.io/<project>/<container>
An alternative for kubectl get all
that returns all resources. Warning: can be slow.
kubectl api-resources --verbs=list --namespaced --output name \
| xargs -n 1 kubectl get --show-kind --ignore-not-found --namespace <namespace> --selector <label>
Perform a diff between two files.
code --diff <file1> <file2>