Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@zoonderkins
zoonderkins / fix-git-clone-error.md
Last active October 30, 2021 05:04
Fix git clone error

Fix Git clone error

Error:

root@jp4:~# git clone https://git.disroot.org/dCF/deCloudflare.git
Cloning into 'deCloudflare'...
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: the remote end hung up unexpectedly
@zoonderkins
zoonderkins / getTime.md
Created October 20, 2021 00:28
Javascript getTime

Raw function

function getTime() {
	let date_ob = new Date();
	let date = ("0" + date_ob.getDate()).slice(-2);
	let month = ("0" + (date_ob.getMonth() + 1)).slice(-2);
	let year = date_ob.getFullYear();
	let hours = date_ob.getHours();
	let minutes = date_ob.getMinutes();
@zoonderkins
zoonderkins / MTR-two-way-trace-command.md
Created September 29, 2021 05:39
MTR two-way trace command

Two-way trace MTR

mtr -n -r -c 100 google.com
@zoonderkins
zoonderkins / secure-your-ssh-debian.md
Last active November 9, 2022 01:52
Secure your SSH Debian

Secure your SSH on Debian 12

SSH hardern config

#Include /etc/ssh/sshd_config.d/*.conf
Port 2022
Protocol 2

PermitRootLogin yes
@zoonderkins
zoonderkins / linux-monitoring-tools.md
Created September 28, 2021 05:47
Linux Monitoring tools

Btop ++

Installation

mkdir btop
cd btop
wget https://github.com/aristocratos/btop/releases/download/v1.0.9/btop-1.0.9-linux-x86_64.tbz
tar -xjf btop-1*
make install
@zoonderkins
zoonderkins / iperf3-on-docker.md
Created September 27, 2021 05:57
Iperf3 on Docker

Iperf3 on Docker test

Server

docker run -p 5201:5201 ajoergensen/iperf3 --server

Client

docker run -it ajoergensen/iperf3 --client my.iperf.server

@zoonderkins
zoonderkins / wireguard-vpn-cannot-surf-github-mtu-fix.md
Last active October 5, 2021 02:35
Wireguard VPN cannot surf Github MTU fix

There are some provider have MTU issue

PhotonVPS, YardVPS

wg0.conf

[Interface]
Address = 10.8.3.1/24, fd42:42:44::1/64
ListenPort = 1723
@zoonderkins
zoonderkins / yggdrasil-network-public-peers.md
Last active October 11, 2021 08:54
Yggdrasil Network Public peers

Yggdrasil network public peers

tcp://[2a09:8280:1::3:313]:10010
tls://213.188.197.95:10020
tls://lancis.iscute.moe:49274
tls://ygg.mkg20001.io:443
tcp://phrl42.ydns.eu:8842
tcp://s2.i2pd.xyz:39565
tls://s2.i2pd.xyz:39575
@zoonderkins
zoonderkins / debian-rc-local-auto-setup.md
Last active December 10, 2021 09:54
Debian rc.local auto setup

Setup rc.local to preconfigure your system during startup

#!/bin/sh -e
#
# rc.local
#

timedatectl set-timezone Asia/Taipei
@zoonderkins
zoonderkins / how-i-setup-vpn-on-debian-docker-image-with-systemd.md
Last active August 21, 2021 12:55
How I setup personal VPN on Debian docker image with systemd

Choose a base image

Systemd image

minimum2scp/systemd

docker run --privileged -d minimum2scp/systemd:latest

ssh login to container: