I hereby claim:
- I am JanKoppe on github.
- I am jankoppe (https://keybase.io/jankoppe) on keybase.
- I have a public key whose fingerprint is 7521 FAB1 B9A0 1B22 1DEB 6CE7 BE93 5B07 35A2 129B
To claim this, I am signing this object:
alias accio=wget | |
alias avadaKedavra='rm -f' | |
alias imperio=sudo | |
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"' | |
alias stupefy='sleep 5' | |
alias wingardiumLeviosa=mv | |
alias sonorus='set -v' | |
alias quietus='set +v' |
I hereby claim:
To claim this, I am signing this object:
Host 172.17.8.* | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null |
https://github.com/docker/docker/issues/30966 | |
mostolog commented 19 days ago | |
As you said, swarm nodes get host's hostname as swarm node name (internally). That's perfectly correct for me. | |
After deploying some services with default setting, ps shows something like: | |
37bbf2b56dbf serviceBar.1.ngneetjtxwhm2eijfs1gvt60t | |
a90e2d59cd77 serviceBar.2.d4lf8h3gqj9e7gyhfi3lgrtdt | |
ed6d150d7c84 serviceBar.3.iz85bp0sc5t6e3b15w6gtteus |
/* | |
LUFA Library | |
Copyright (C) Dean Camera, 2012. | |
dean [at] fourwalledcubicle [dot] com | |
www.lufa-lib.org | |
*/ | |
/* | |
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com) |
python manage.py shell |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
Running a Django app with gunicorn in a Docker container gets a bit tricky, when you try to expose Prometheus metrics (with e.g. https://github.com/korfuri/django-prometheus).
Every worker thread in gunicorn will be an entirely separate process, all RRD behind a single port. So, if you are running more than one worker thread (which you most likely do and should) you will need to let the workers each listen on a dedicated port, so your metrics will not get confused. You could try to add additional labels, but that still would come with a lot of problems. Running on a range of ports is supported quite well with korfuri/django-prometheus, as described here: https://github.com/korfuri/django-prometheus/blob/master/documentation/exports.md#exporting-metrics-in-a-wsgi-application-with-multiple-processes
This will be a bit uncomfortable though, especially if your app is hidden behind an ingress reverse proxy and you do not want to punch lots of holes into your firewall config, or create lots and lots of vhosts.
#!/bin/bash | |
# Reminds you in xx minutes with notify-send, using at/atd | |
MINUTES=${1} | |
MESSAGE=${2:-reminder} | |
at now + "${MINUTES}" minutes << EOF | |
notify-send -c reminder -u critical 'Reminder from ${MINUTES} minutes ago' '${MESSAGE}' | |
EOF |