Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@zoonderkins
zoonderkins / wireguard-fix.md
Last active March 30, 2022 06:12
Wireguard 疑難雜症

Wireguard packet dropped

Method 1

iptables -t mangle -I FORWARD -o wg0 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1372

Method 2

@zoonderkins
zoonderkins / Rclone-mount-with-librephoto.md
Last active August 17, 2022 11:49
Librephoto docker compose host with Rclone

Librephoto mount with rclone

Rclone mount

apt-get -y install s3fs

rclone mount de1-storage: /mnt/de1-storage --daemon --daemon-timeout=5m --buffer-size=64M --dir-cache-time=64h --vfs-cache-mode=full --vfs-read-chunk-size 100M --vfs-read-chunk-size-limit 0 --vfs-cache-max-age=6h  --allow-non-empty --allow-other
@zoonderkins
zoonderkins / google-photos-export-tweaks.md
Created March 23, 2022 08:05
Google Photos export tweak

Google photos tricks

For example I've 62 files which split into 2GB per file and everthing have to merge into one same directory, here are the tricks.

mkdir all
for x in *.zip ; do unzip -d all -o -u $x ; done

# zip -r all.zip all

Route DNS Install

rm -rf /usr/local/go
GOVERSION="1.17.8"
wget "https://golang.org/dl/go${GOVERSION}.linux-amd64.tar.gz" -4
tar -C /usr/local -xvf "go${GOVERSION}.linux-amd64.tar.gz"

go install github.com/folbricht/routedns/cmd/routedns@latest
@zoonderkins
zoonderkins / setup-self-hosted-docker-registry.md
Created March 15, 2022 10:38
Setup self-hosted docker registry
@zoonderkins
zoonderkins / fix-macbok-m1-app-broken.md
Created March 15, 2022 08:59
Fix Macbook M1 app broken #mac
@zoonderkins
zoonderkins / disable-gitea-root-user-check.md
Last active March 15, 2022 09:06
Disable Gitea root user check
@zoonderkins
zoonderkins / kopia-with-rclone-backup-backblazeb2.md
Last active March 21, 2022 07:01
Secure your NextCloud with Kopia with backup

Kopia with Rclone backup to backblaze B2 Cloud

Step 1

kopia repository create rclone --remote-path b2:/de3-backup/jp3-web-kopia

Enter password to create new repository:
Re-enter password for verification:
Initializing repository with:
@zoonderkins
zoonderkins / vps-looking-glass-collection.md
Created March 10, 2022 05:40
vps-looking-glass-collection

Looking glass collection

Hongkong

wget https://hkbgp.lg.lite.moe/1000MB.test
wget https://lg-hkg.fdcservers.net/1GBtest.zip

Mac install nake

nimble install nake

Add .nimble into your PATH