Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar
Planet huntin'

Lizhou Sha vulpicastor

Planet huntin'
View GitHub Profile
vulpicastor /
Created August 24, 2015 03:59 validation gist

Keybase proof

I hereby claim:

  • I am vulpicastor on github.
  • I am slz ( on keybase.
  • I have a public key whose fingerprint is 05CB 8CB7 44BF 65AC 55FA 004D ECA3 650A C6A0 C408

To claim this, I am signing this object:

vulpicastor /
Created December 25, 2015 03:46
Grabs your current track metadata from your MPRIS-enabled media player on Linux and zephyrs it in sipbmp3 format.
#!/usr/bin/env python3
import dbus
import sys
from zwrite import zwrite
# You can find at
import platform, getpass
BUS_PREFIX = "org.mpris.MediaPlayer2"
OBJECT_PATH = "/org/mpris/MediaPlayer2"
vulpicastor / mit418.html
Created December 28, 2015 06:30
An HTTP 418 error page, with apologies to
View mit418.html
<!DOCTYPE html>
<title>MIT 418 Error - I’m a teapot</title>
<meta charset="UTF-8">
<!-- <link rel="shortcut icon" type="image/x-icon" href="//"></link> -->
<style type="text/css">
body {
vulpicastor /
Last active December 28, 2015 06:43
A Python wrapper for zwrite that shells out to send zephyrgrams.
#!/usr/bin/env python3
# Written in 2015 by Lizhou Sha <>
# To the extent possible under law, the author has dedicated all copyright
# and related and neighboring rights to this software to the public domain
# worldwide. This software is distributed without any warranty.
# See <> for a copy of the
# CC0 Public Domain Dedication.
vulpicastor / zlogrotate
Created December 30, 2015 00:25
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 )
vulpicastor / sl2.html
Created July 21, 2016 03:25
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 / gpg.conf
Created July 27, 2016 08:23
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 /
Created October 14, 2016 16:18
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 / slz-pgp-key-transition-2016-10-27.txt
Created October 27, 2016 06:47
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 / uclip
Created February 25, 2017 20:22
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