Skip to content

Instantly share code, notes, and snippets.

View texasdave2's full-sized avatar

David O'Dell texasdave2

  • Austin
View GitHub Profile
sudo apt update
sudo apt upgrade
### common tools
sudo apt-get install git git-lfs tree net-tools nvtop speedtest-cli
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias gp='kubectl get pods'
alias dp='kubectl describe pod'
alias kc='kubectl create'
alias ka='kubectl apply'
alias gl='kubectl logs'
alias gs='kubectl get svc'
Questions are not from any actual exam!!!
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
Once the job has completed, check the logs to and export the result to pi-result.txt.
Solution: