Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@zoonderkins
zoonderkins / ublock-adguard-opnionted-rules.md
Last active March 16, 2021 06:21
uBlock-Adguard-opnionted-rules #adguard

uBlock Adguard opnionted rules

Those list are been using on my daily driver (Firefox, Brave with uBlock origin + AdGuard)

Last update: 2021-Mar-16

Blocklist Rules

https://anti-ad.net/easylist.txt
https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-pc.txt
@zoonderkins
zoonderkins / flutter-2-mac-pub-get-error.md
Created March 14, 2021 09:35
Flutter 2.0 on Mac pub get error #flutter

Flutter on mac 2.0 pub get error

export FLUTTER_STORAGE_BASE_URL="https://storage.flutter-io.cn"
export PUB_HOSTED_URL="https://pub.flutter-io.cn"
@zoonderkins
zoonderkins / git-pretty.md
Last active January 29, 2021 07:22
git-pretty

Git pretty with some tweak and alias

# paste into your terminal to create a Git alias

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

Example

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@zoonderkins
zoonderkins / Debian-Ubuntu-basic-security-protection.md
Last active May 1, 2021 10:13
Debian-Ubuntu-basic-security-protection

This is what I generally used on my VPS after whole NEW VPS is setup.

Pre-install

apt install screen sshguard iftop nload htop socat fail2ban zip unzip mtr git curl wget dnsutils  net-tools knot-dnsutils build-essential 

SSH protection

@zoonderkins
zoonderkins / mac-install-neovim.md
Last active May 19, 2021 02:53
Mac OSX install neovim

Neovim install

brew reinstall cmake 
brew install luarocks

brew install --HEAD luajit
brew install --HEAD neovim
@zoonderkins
zoonderkins / Hetnzer-amd-vps-vs-littlecreekhosting.md
Last active March 20, 2021 05:55
Hetnzer-amd-vps-vs-littlecreekhosting
@zoonderkins
zoonderkins / debian-ssd-benchmark-fio.md
Last active February 25, 2022 03:14
Debian-SSD-benchmark-fil

Fio ssd benchmark

apt install fio

fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=rwtest --filename=rwtest --rwmixread=70 --bs=4k --iodepth=64 --size=4G --readwrite=randrw
@zoonderkins
zoonderkins / php-8-on-debian-10-iconv-not-found.md
Created December 29, 2020 03:05
PHP 8 on Debian 10 iconv not found

PHP 8 install on Debian 10 iconv not found

Error message: error: iconv does not support errno

Solution

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
@zoonderkins
zoonderkins / debian-install-netdata.md
Last active December 17, 2020 06:38
Debian install Netdata with testing branch

Preinstall some dependency

apt -t testing install uuid-dev zlib1g-dev gcc make autoconf automake pkg-config build-essential autoconf-archive autogen cmake libelf-dev libjson-c-dev libjudy-dev liblz4-dev libmnl-dev libssl-dev libtool libuv1-dev

Install

bash <(curl -Ss https://my-netdata.io/kickstart.sh)