Skip to content

Instantly share code, notes, and snippets.

Planet huntin'

Lizhou Sha vulpicastor

Planet huntin'
View GitHub Profile
View zshenv
typeset -U path
path=(/usr/local/go/bin $path $HOME/bin $HOME/.local/bin $HOME/go/bin)
vulpicastor / uclip
Created Feb 25, 2017
A simple shell script that uses xclip to clear all the clipboards of X
View uclip
XCLIP=`which xclip`
if [ -z $XCLIP ]; then
echo "Please install xclip"
$XCLIP /dev/null
$XCLIP -selection clipboard /dev/null
vulpicastor / slz-pgp-key-transition-2016-10-27.txt
Created Oct 27, 2016
OpenPGP Key Transition Statement from Lizhou Sha (2016-10-27)
View slz-pgp-key-transition-2016-10-27.txt
Hash: SHA512
OpenPGP Key Transition Statement from Lizhou Sha (2016-10-27)
I have created a new OpenPGP key and will be transitioning away from my
old key. The old key remains secure to the best of my knowledge and will
continue to be valid for some time, but I prefer all new correspondence
to be encrypted with the new key, and I will be making signatures with
the new key going forward.
vulpicastor /
Created Oct 14, 2016
A parser and Zephyr nottification bot for's auctions
#!/usr/bin/env python3
import requests
import time
from datetime import datetime
import pytz
from zwrite import zwrite
AUCTION_PATH = "/auctions.json"
vulpicastor / gpg.conf
Created Jul 27, 2016
An example of gpg.conf with sane settings; h/t
View gpg.conf
charset utf-8
keyserver hkp://
keyserver-options no-honor-keyserver-url
keyid-format 0xlong
personal-digest-preferences SHA512
cert-digest-algo SHA512
vulpicastor / sl2.html
Created Jul 21, 2016
Ancient placeholder for
View sl2.html
<!DOCTYPE html>
<meta charset="UTF-8"></meta>
<title>Welcome to SL₂(ℤ)!</title>
<script type="text/x-mathjax-config">
availableFonts: ["Gyre-Pagella"],
preferredFont: "Gyre-Pagella",
vulpicastor /
Last active Apr 26, 2017
A script to check the SOA serial numbers of all nameservers of a domain and notify via Zephyr
#!/usr/bin/env python3
from __future__ import print_function
import sys
import time
import dns.resolver, dns.exception
from random import randrange
import zwrite
DEFAULT_ARGS = {"classname": "test",
vulpicastor / iodined.service
Last active Jan 20, 2020
A systemd service file for iodine on Debian or Ubuntu
View iodined.service
# Author: Lizhou Sha <>
# Note: This version is OUTDATED. Please refer to the latest iodine package in Debian Unstable.
Description=A daemon for tunneling traffic over DNS queries
ExecStartPre=/bin/sh -xc "test ${START_IODINED} = true"
vulpicastor /
Last active May 16, 2020
Configure a custom Ubuntu 14.04 Athena virtual machine with cloud-init

How to configure a custom Ubuntu 14.04 Athena dialup with cloud-init


Install dependencies

apt-get install libvirt-bin virtinst cloud-img-utils
vulpicastor / zlogrotate
Created Dec 30, 2015
A simple script to rotate your zlog.
View zlogrotate
DATE=`date +%F`
if [ -n "$ZCLASS" ]
mv -i "$ZCLASS" "$ZCLASS.$DATE" && $PRESS "$ZCLASS.$DATE" || ( echo Failed; exit 1 )