I hereby claim:
- I am raphaelm on github.
- I am raphaelm (https://keybase.io/raphaelm) on keybase.
- I have a public key whose fingerprint is 6654 0831 7895 7043 9A44 C80D 4F70 B444 E1C6 8BA1
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Blog post moved to my new blog.
#!/usr/bin/env python | |
""" | |
From https://github.com/docker/docker/issues/6354#issuecomment-60817733 | |
All credit goes to https://github.com/adamhadani | |
Check all existing Docker containers for their mapped paths, and then purge any | |
zombie directories in docker's volumes directory which don't correspond to an | |
existing container. | |
""" |
Step zero: Install this role by creating the directories roles/letsencrypt/
, roles/letsencrypt/files/
and roles/letsencrypt/tasks/
. Then save the tasks.yml
from this gist as roles/letsencrypt/tasks/main.yml
and config.sh
from this gist as roles/letsencrypt/files/config.sh
.
Step one: Add the following to your nginx server config
location /.well-known/acme-challenge {
root /var/www/letsencrypt;
}
Step two: Execute the ansible role, e.g. using
# -*- coding: UTF-8 -*- | |
# Patricia Ennenbach - 15-12-21 - Wichteln | |
# Aufgaben: | |
# - Jedes Kind soll einem Kind etwas schenken | |
# - Kinder sollen sich nicht selbst beschenken | |
# - Kinder sollen nicht ihre Geschwister beschenken | |
# - Jedes Kind soll nur einmal beschenkt werden | |
# Ich habe den Hauptteil relativ stark verändert, aus zwei Gründen: | |
# * Du hast die Liste "kinder" bearbeitet, während du in einer Schleife |
import hashlib | |
import urllib.parse | |
import os | |
from io import BytesIO, StringIO | |
import requests | |
from django.conf import settings | |
from django.core.exceptions import SuspiciousFileOperation | |
from django.core.files import File |
from django.core import signals | |
from django.db import connections | |
from django.db.utils import ConnectionHandler | |
from eventlet.pools import Pool | |
_unpatched_get_item = ConnectionHandler.__getitem__ | |
class ConnectionPool(Pool): | |
def __init__(self, alias, max_size=4): |