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 | |
import os | |
import re | |
import subprocess | |
import tempfile | |
import time | |
import urllib.request | |
from pathlib import Path | |
TW_URL = 'https://twitter.com/PrimitivePic' |
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
## Do this on each swarm-node | |
# store containers attached to the bridge | |
$ gwbridge_users=$(docker network inspect --format '{{range $key, $val := .Containers}} {{$key}}{{end}}' docker_gwbridge | \ | |
$ xargs -d' ' -I {} -n1 docker ps --format {{.Names}} -f id={}) | |
# stop all containers | |
# if you have stacks that restart automatically, remove them via docker stack <stackName> rm | |
$ echo "$gwbridge_users" | xargs docker stop | |
$ docker network rm docker_gwbridge | |
$ docker network disconnect -f docker_gwbridge gateway_ingress-sbox |
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
+-----------------------------------------------------------------------------+ | |
|CLIENT POD HOST | | |
| +---------------------------------------------+ | | |
+---------------+ | |CLIENT POD | | | |
|KUBEDNS | | | | | | |
| <-------------+ $ curl http://myservice:4000 | | | |
| | | srvc | | | | |
| myservice | | disc | $ grep nameserver /etc/resolv.conf | | ++ kubelet | |
| A 10.96.193.4 | | (DNS) | nameserver 10.96.0.10 | | ++ > svc cluster ip range: | |
| | | | | | |
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
// ==UserScript== | |
// @name triple touch to fullscreen | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description triple touch to fullscreen for for mobile | |
// @author trapier | |
// @run-at document-end | |
// @match http(s)?://*/* | |
// @include http://* | |
// @include https://* |
OlderNewer