orm-awesome

O'Reilly Awesome List

This project is maintained by oreillymedia

O’Reilly Awesome List

Read about how to contribute to this list!

Command Line

^ back to top ^

CLI Reference & Tips

  1. Find your public IP address:

     dig +short myip.opendns.com @resolver1.opendns.com
    
  2. Lookup command examples:

     curl -s cheat.sh/<command>
    
  3. 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
    
  4. To remove duplicate lines from unsorted data:

     echo "Apple\nOrange\nOrange \nBanana\nApple\nPineapple" > file1
     awk '!a[$0]++' file1
     Apple
     Orange
     Banana
     Pineapple
    
  5. 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
    

CLI Tools

Git

^ back to top ^

Git Reference & Tips

Git Tools

Docker

^ back to top ^

Docker Reference & Tips

List 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>

Container Tools

Kubernetes

^ back to top ^

K8s Tools

K8s Reference & Tips

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>

Python

^ back to top ^

Modules

VSCode

^ back to top ^

VSCode Reference & Tips

Perform a diff between two files.

code --diff <file1> <file2>

Extensions

Newsletters & Blogs

^ back to top ^

Awesome Lists

^ back to top ^