Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@zoonderkins
zoonderkins / speedtest-cli-on-mac.md
Created February 22, 2022 07:31
speedtest-cli-on-mac.md
@zoonderkins
zoonderkins / brook-vpn-socks-from-china-to-internet.md
Last active March 18, 2022 04:13
Brook VPN + Socks from China through Internet
@zoonderkins
zoonderkins / disable-ubuntu-screen-lock-and-black-screen.md
Created December 29, 2021 19:44
Turn off Ubuntu screen lock and black screen

Method

sudo -s

gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.desktop.screensaver lock-enabled false

@zoonderkins
zoonderkins / rc-local-on-ubuntu.md
Last active June 2, 2022 06:12
rc-local on ubuntu

Install rc-local on Ubuntu

sudo nano /etc/rc.local

#!/bin/sh -e

rm /etc/resolv.conf
@zoonderkins
zoonderkins / linux-install-btop.md
Last active December 29, 2021 16:01
Linux install btop

Linux install btop

rm -rf ./btop

mkdir ./btop
cd btop

wget https://github.com/aristocratos/btop/releases/download/v1.1.4/btop-x86_64-linux-musl.tbz
@zoonderkins
zoonderkins / ubuntu-apt-sources-list.md
Created December 23, 2021 05:47
Ubuntu Apt sources

Ubuntu apt sources list

Impish Indri

deb http://archive.ubuntu.com/ubuntu/ impish main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ impish main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse
@zoonderkins
zoonderkins / mac-install-nerd-font.md
Last active June 13, 2023 10:07
Mac install Nerd Font

Mac install Nerd Font (Fire code)

brew cask
brew tap homebrew/cask-fonts 
brew install font-fira-code
brew install font-Fira-Code-nerd-font
brew install font-hack-nerd-font
@zoonderkins
zoonderkins / fix-neovim-libvterm-error-on-mac.md
Created December 20, 2021 02:48
Fix NeoVIM libvterm error on Mac

How to trigger

# Install HEAD version of neovim
brew install --HEAD luajit
brew install --HEAD neovim

Error code

@zoonderkins
zoonderkins / iptables-allow-cloudflare-access-only.md
Created December 18, 2021 04:17
[archive] Iptables allow Cloudflare IP access only

Script

    #!/bin/bash
    # Name  : Anti IP Leakage
    # Author: Zhys
    # Date  : 2019

    # 禁止来自IPv4的所有HTTP/S访问请求
@zoonderkins
zoonderkins / convert-png-to-jpg-via-cli.md
Last active December 16, 2021 08:45
convert png to jpg cli

Convert PNG to JPG via Imagick cli

mogrify -format jpg *.png

List too long issue