Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@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
@zoonderkins
zoonderkins / README.md
Created October 3, 2022 06:15 — forked from sutlxwhx/README.md
Synchronize folders between two servers using rclone and ssh-agent with ssh based authorisation

Introduction

This tutorial will help you transfer your folders / files between two server using rclone and ssh-agent.
It was tested between two Ubuntu 16.04 servers.

Installation

First things first. We need to install the neccessary packages:

apt-get update -y
@zoonderkins
zoonderkins / hetzenr-ddns-update.md
Last active June 26, 2022 06:29
Hetzner DDNS update script

Auto check latest VPS IP and update DDNS record on Hetzner

Last updated on: 2022/06/26

cd /root/

wget https://gist.githubusercontent.com/ookangzheng/c1f6894470d362c4356911691c24f67d/raw/update-hetzner-dns.sh