kubectl run python-workload --image=python:3.12-slim --restart=Never --command -- /bin/bash -c "sleep 3600"
kubectl exec -it python-workload -- /bin/bash
kubectl delete pod python-workload
gcloud config configurations create my-profile | |
gcloud config set account [email protected] | |
gcloud config configurations list | |
gcloud config configurations activate my-profile | |
gcloud auth application-default login |
kubectl run python-workload --image=python:3.12-slim --restart=Never --command -- /bin/bash -c "sleep 3600"
kubectl exec -it python-workload -- /bin/bash
kubectl delete pod python-workload
https://python-poetry.org/docs/#installation
pipx install poetry
Can also pipx upgrade poetry
or pipx uninstall poetry
poetry env use 3.9
# List all used ports | |
sudo netstat -tulpn | grep LISTEN |
# Redis | |
docker run --rm -it --name redis-stack --network="host" redis/redis-stack:latest | |
docker run --rm -it --name redisinsight --network="host" redis/redisinsight:latest | |
https://blog.oddbit.com/post/2019-06-17-avoid-rebase-hell-squashing-wi/
#git
You’re working on a pull request. You’ve been working on a pull request for a while, and due to lack of sleep or inebriation you’ve been merging changes into your feature branch rather than rebasing. You now have a pull request that looks like this (I’ve marked merge commits with the text [merge]):
7e181479 Adds methods for widget sales