I hereby claim:
- I am jacekbj on github.
- I am jacekbj_15five (https://keybase.io/jacekbj_15five) on keybase.
- I have a public key ASDdVWs1isy_188RweoYQzarXLsiyKuLgZ53S3eiCqApJQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
if [ $checksum == "$(md5sum virtualbox-6.1_6.1.32-149290~Ubuntu~eoan_amd64.deb | cut -f1 -d' ')" ]; then | |
echo "Equal" | |
else | |
echo "Not equal" | |
fi |
List changed files
git log --stat
Push force but fail if it would overwrite somebody's else changes:
git push --force-with-lease
From https://jeffknupp.com/blog/2016/03/07/python-with-context-managers/. Can be used both as context manager and as function decorator.
from contextlib import ContextDecorator
class makeparagraph(ContextDecorator):
def __enter__(self):
print('<p>')
return self
Install a release
helm install my-installation ./mychart
# dry run
helm install --debug --dry-run my-installation ./mychart
# pass a variable from CLI
helm install --set drink=cofee my-installation ./mychart
# load file with variables
helm install -f ./variables-override.yaml my-installation ./mychart
# set default value to null to remove it
minikube start --driver=virtualbox | |
minikube status | |
minikube stop | |
minikube delete // Removes state from previous run | |
Format input if it's JSON
some-command | jq -R -r '. as $line | try fromjson catch $line'
Run command in a loop with substitution
array=( one two three )
for i in "${array[@]}"; do commaind $i ; done
convert SVG to PNG with transparency
convert -background none "logo (1).svg" logo-wc.png
resize image (set width to 100px, preserve aspect ratio)
convert in.jpg -resize 100 out.jpg
I worked on Python web apps, wrote some Tornado code, crunched data in Pandas and PySpark. Hell, I even knitted something together in OpenCV and scikit-learn (university, I miss you). However, no task can ever give you a chance to practice each and every part of language and package ecosystem. It's always good to sharpen your saw, so I decided to refresh my knowledge a bit and get my hands on excellent "Python High Performance" by Gabriele Lanaro. I will share with you my notes, which consist of 3 types of notes:
alias fixssh='export SSH_AUTH_SOCK=$(find /tmp -path '*/ssh-*' -name 'agent*' -uid $(id -u) 2>/dev/null | tail -n1)' |