Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@zoonderkins
zoonderkins / check incoming and outgoing udp traffic.md
Last active October 17, 2023 04:22
check incoming and outgoing udp traffic

Check incoming and outgoing UDP traffic

# Outgoing
nc -v -u www.google.com 443

# Incoming
nc -v -u 1.1.1.1 443
@zoonderkins
zoonderkins / gl-inet-router-modify-ttl-to-65.md
Last active April 25, 2025 21:50
GL-inet router modify iptables ttl to 65
@zoonderkins
zoonderkins / how-transfer-migrate-file-between-vps-on-the-fly-rclone.md
Last active September 19, 2023 12:00
Transfer tar file on the fly between vps debian 12

Transfer tar file on the fly between vps

Setup temporary rclone webdav server

## Edit file: .config/rclone/rclone.conf

[my-dest-server]
type = webdav
url = http://webdav.xxx.com:8080
@zoonderkins
zoonderkins / install-python3-on-ubuntu-18.md
Created August 14, 2023 09:50
Ubuntu 18 make Python3.9

Why

As of Aug 14, 2023 deadsnakes ppa remove Ubuntu 18 bionic support for Python3.9 Therefore, We have to manually make it.

Installation

must be root user

@zoonderkins
zoonderkins / delete-file-with-find-command.md
Created April 19, 2023 17:11
delete file with find command

Find the file with .torrent extension and delete it

# Find 
find . -name "*.torrent"

./xxx.torrent
./xxx1.torrent
./xxx2.torrent
@zoonderkins
zoonderkins / nodejs-generate-uuid.md
Last active February 8, 2023 03:23
Nodejs generate UUID
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@zoonderkins
zoonderkins / knot-resolver-http-module-not-found.md
Created November 1, 2022 04:44
knot-resolver http module not found

Knot resolver on Debian HTTP module not found

Error Message

kresd -c /etc/knot-resolver/53/kresd.conf
[system] error: module 'kres_modules.http' not found:
	no field package.preload['kres_modules.http']
	no file '/usr/lib/knot-resolver/kres_modules/http.lua'
	no file '/usr/lib/knot-resolver/kres_modules/http/init.lua'
@zoonderkins
zoonderkins / remove-node-modules-on-linux-mac-cli.md
Created October 11, 2022 08:13
Remove node_modules recursivly on Linux or Mac cli

One line CLI remove node_modules

find . -name "node_modules" -type d -prune -print -exec rm -rf '{}' \;
@zoonderkins
zoonderkins / Install-nodejs-with-fnm-on-debian.md
Created October 5, 2022 08:28
Install Nodejs with fnm on Debian