How to delete a running pod stuck in termination state
kubectl delete pod --grace-period=0 --force --namespace [NAMESPACE] [POD_NAME]
# To fix the error, set the folowing environment variables on your Mac before compilation | |
export CGO_ENABLED=1 | |
export CC=gcc | |
# Sample compilation | |
go build -o docker-bench |
kubectl delete pod --grace-period=0 --force --namespace [NAMESPACE] [POD_NAME]
pip freeze > requirements.txt | |
pip uninstall -r requirements.txt -y | |
# alternatively, you can use a single command | |
pip uninstall -y -r <(pip freeze) |
# Switch from Apple M1 Silicon to Rosetta Intel Emulator (add to your ~/.zshrc) | |
alias arm="env /usr/bin/arch -arm64 /bin/zsh --login" | |
alias intel="env /usr/bin/arch -x86_64 /bin/zsh --login" |
sudo lsof -i -P -n | grep LISTEN |
sudo chmod 644 /etc/rancher/k3s/k3s.yaml
pyenv
in Ubuntu 20curl
is installed:curl --version
If it is not installed, install as follows:
gsutil
without installing entire Google Cloud CLI SDKDownload archive
wget https://storage.googleapis.com/pub/gsutil.tar.gz
git config --global url."https://".insteadOf git://
$ sudo nano ~/.bash_profile
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"