This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from urllib.parse import urlparse | |
import codecs | |
from django.conf import settings | |
from django.utils.html_parser import HTMLParser | |
__author__ = 'Paweł Krawczyk' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
from gzip import GzipFile | |
import gzip | |
import sys | |
__author__ = 'Paweł Krawczyk' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sbin/nft -f | |
flush ruleset | |
table inet filter { | |
chain input { | |
type filter hook input priority 0; policy drop | |
iifname lo accept | |
ct state established,related accept | |
# allow any incoming ICMP and ICMPv6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker networking is messy and undocumented. Docker will create IP addresses and iptables at random times. | |
# This can be limited by using totally static IP addresses for network interfaces and avoiding the default network bridge. | |
# /etc/default/docker | |
# DOCKER_OPTS="--iptables=false --ipv6 --bip 172.16.0.1/16 --fixed-cidr 172.16.0.0/16 --fixed-cidr-v6 2a01:9000::/68" | |
# --bip is the host IP address of the docker0 interface | |
# --fixed-cidr is the CIDR subnet allocated to the docker0 interface (default network bridge) | |
# --fixed-cidr-v6 is the IPv6 CIDR allocated to docker0 | |
# for IPv6 split your /64 delegated subnet into /68 subnets and allocate them to each docker-compose.yml subnet: |
OlderNewer