Given that your key has expired.
$ gpg --list-keys
$ gpg --edit-key KEYID
Use the expire command to set a new expire date:
docker run \ | |
--name {{printf "%q" .Name}} \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- if .Runtime}} |
For simplicity's sake no separate network is created (the default bridge network is used, although it's [inferior][1] to user-defined ones).
version: "3.7" | |
services: | |
registry: | |
image: registry:2.7.1 | |
networks: | |
- swarm_net | |
environment: | |
- REGISTRY_HTTP_ADDR=0.0.0.0:5000 | |
- REGISTRY_HTTP_RELATIVEURLS=true | |
- REGISTRY_LOG_ACCESSLOG_DISABLED=false |
(venv) user@dumb:/tmp/test$ for f in *yml;do echo "# $f #####";cat $f;ansible-playbook -D $f;done | |
# test_nouser.yml ##### | |
- hosts: localhost | |
become: true | |
tasks: | |
- docker_swarm_service: | |
name: traefik-lb | |
state: absent | |
- docker_network: | |
name: traefik-net |
#!/bin/bash | |
file=$1 | |
test -z $file && echo "file required." 1>&2 && exit 1 | |
git filter-branch -f --index-filter "git rm -r --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all | |
git ignore $file | |
git add .gitignore | |
git commit -m "Add $file to .gitignore" |
#!/usr/bin/env python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class S(BaseHTTPRequestHandler): |
This script is intended to be used with Open VPN as the client-connect
and client-disconnect
scripts, to send an email using Mailgun to a certain address when a client connects or disconnects.
To install this, copy the below file to /etc/openvpn/statuschange.sh
, replace the to
email with your own, the and the from
email, the URL, and the API key with your own Mailgun login. (I use the sandbox because I didn't feel like messing with DNS.)
Then, add the following to /etc/openvpn/server.conf
:
client-connect /etc/openvpn/statuschange.sh
client-disconnect /etc/openvpn/statuschange.sh
script-security 2