Skip to content

Instantly share code, notes, and snippets.

@daniel31x13
daniel31x13 / archivebox2linkwarden.js
Last active August 7, 2025 17:49
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.
#!/usr/bin/env node
const fs = require("fs");
const path = require("path");
const { execSync } = require("child_process");
const raw = process.argv.slice(2);
function getFlag(names) {
for (let n of names) {
@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