Skip to content

Instantly share code, notes, and snippets.

@daniel31x13
daniel31x13 / README.md
Last active May 29, 2025 00:40
A script to automate the import of ArchiveBox snapshots into your Linkwarden instance by directly executing SQL against the Postgres database and arranging the archived files into Linkwarden's expected directory structure.

archivebox2linkwarden.js

Description

This script automates the import of ArchiveBox snapshots into a Linkwarden instance by directly executing SQL against the Postgres database and arranging the archived files into Linkwarden's expected directory structure. Just make sure to have a backup of your Linkwarden database before running this script just in case.

It handles two connection modes:

  • Docker mode: Executes psql inside a running Postgres container via docker exec, specified by the --postgres-container-id flag.
@daniel31x13
daniel31x13 / README.md
Created January 5, 2023 21:46 — forked from hamid-rostami/README.md
wireguard over TCP

To pass wireguard's traffic through a TCP tunnel by using udp2raw

Requirements

For Arch linux, install udp2raw by pacman: pacman -S udp2raw

For Debian or Ubuntu, you can use a binary release from: https://github.com/wangyu-/udp2raw/releases