- I faced bandwidth issues between a WG Peer and a WG server. Download bandwidth when downloading from WG Server to WG peer was reduced significantly and upload bandwidth was practically non existent.
- I found a few reddit posts that said that we need to choose the right MTU. So I wrote a script to find an optimal MTU.
- Ideally I would have liked to have run all possible MTU configurations for both WG Server and WG Peer but for simplicity I choose to fix the WG Server to the original 1420 MTU and tried all MTUs from 1280 to 1500 for the WG Peer.
- On WG server, I started an
iperf3
server - On WG peer, I wrote a script that does the following:
wg-quick down wg0
- Edit MTU in the
/etc/wireguard/wg0.conf
file
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
-- Step 1: Find the lowest/earliest certificate ID affected by the updated Apple CT Policy. | |
-- (Assumptions: (i) Certificate notBefore dates are never forward-dated and (ii) Log entry timestamps are always accurate). | |
certwatch@certwatch=> SELECT min(c.ID) | |
FROM certificate c | |
WHERE x509_notBefore(c.CERTIFICATE) >= '2021-04-21'::timestamp | |
AND c.ID IN ( | |
SELECT ctle.CERTIFICATE_ID | |
FROM ct_log_entry_2021 ctle | |
WHERE ctle.ENTRY_TIMESTAMP >= '2021-04-21'::timestamp |
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
diff --git a/Dockerfile b/Dockerfile | |
index 5e32433..f746306 100644 | |
--- a/Dockerfile | |
+++ b/Dockerfile | |
@@ -24,8 +24,17 @@ PLEX_MEDIA_SERVER_INFO_DEVICE="Docker Container (LinuxServer.io)" | |
RUN \ | |
echo "**** install runtime packages ****" && \ | |
apt-get update && \ | |
+ apt-get install -y software-properties-common && \ | |
+ add-apt-repository ppa:oibaf/graphics-drivers -y && \ |
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
async function supportsImgType(type) { | |
// Create | |
// | |
// <picture> | |
// <source srcset="data:,x" type="{type}" /> | |
// <img /> | |
// </picture> | |
// | |
// (where "data:,x" is just a minimal URL that is valid but doesn't trigger network) | |
let img = document.createElement('img'); |
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
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
async function fetchAndApply(request) { | |
let response = await fetch(request) | |
let referer = request.headers.get('Referer') | |
let contentType = response.headers.get('Content-Type') || '' | |
if (referer && contentType.startsWith('image/')) { |
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
BACKUP_PATHS="/etc /home /root /var/lib/mysql" | |
BACKUP_EXCLUDES="--exclude-file /home/rupert/.restic_excludes --exclude-if-present .exclude_from_backup --exclude-caches" | |
RETENTION_DAYS=7 | |
RETENTION_WEEKS=4 | |
RETENTION_MONTHS=6 | |
RETENTION_YEARS=3 | |
B2_ACCOUNT_ID=xxx | |
B2_ACCOUNT_KEY=yyy | |
RESTIC_REPOSITORY=b2:patryk-restic-backups:/restic/backup/felucia | |
RESTIC_PASSWORD=zzz |
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
/* | |
* John Conway's Game of Life. | |
* | |
* This is written for POSIX, using Curses. Resizing of the terminal is not | |
* supported. | |
* | |
* By convention in this program, x is the horizontal coordinate and y is | |
* vertical. There correspond to the width and height respectively. | |
* The current generation number is illustrated when show_generation is set. | |
* |
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
POST https://www.googleapis.com/deploymentmanager/staging_dogfood/projects/<PROJECT>/global/typeProviders?access_token=<TOKEN> HTTP/1.1 | |
{ | |
"name": "hack", | |
"descriptorUrl": "https://<GSLB target's path to a descriptor document>", | |
"googleOptions": { | |
"gslbTarget": <GSLB target name>, | |
"descriptorUrlServerSpec": <GSLB target name>, | |
"ownershipKind": "GOOGLE", | |
"credentialType": "GAIAMINT", |
NewerOlder