List, add or delete Wireguard peers. Also show client configuration for already added peers.
wg-peer [add [<desc>]|show <peer>|del <peer> ...|list]
where:
a[dd]add a new peer
| # This version works with CF WAF (using zone rulesets) and obsoletes previous | |
| # versions. This works will all CF account types. This action depends on curl | |
| # and jp and will add/remove IPs from the $known_hostile_ips list. Creating the | |
| # WAF rules need only be done once per zone. Creating the list need only be done | |
| # once per account. | |
| # | |
| # Author: Bernard Dickens III (Xunnamius) | |
| # | |
| # Inspired by work from: Mike Rushton | |
| # https://github.com/fail2ban/fail2ban/blob/master/config/action.d/cloudflare.conf |
| #!/bin/bash | |
| export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| exec > /dev/kmsg 2>&1 | |
| TMP=/tmp/ipsum.txt | |
| until wget --spider https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt > /dev/null 2>&1; do | |
| echo "Waiting for GitHub to be accessible" |
| # copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py | |
| # Copyright (C) 2021 Tulir Asokan | |
| import asyncio | |
| import hashlib | |
| import inspect | |
| import logging | |
| import math | |
| import os | |
| from collections import defaultdict | |
| from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO |
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <!-- pixel alignment rgba --> | |
| <!-- check it here http://www.lagom.nl/lcd-test/subpixel.php --> | |
| <match target="font"> | |
| <edit name="rgba" mode="assign"> | |
| <const>rgb</const> | |
| </edit> | |
| </match> |