{{ message }}

Instantly share code, notes, and snippets.

🪐
Planet huntin'

# Lizhou Sha vulpicastor

🪐
Planet huntin'
Created Aug 24, 2015
Keybase.io validation gist
View keybase.md

### Keybase proof

I hereby claim:

• I am vulpicastor on github.
• I am slz (https://keybase.io/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:

Created Dec 25, 2015
Grabs your current track metadata from your MPRIS-enabled media player on Linux and zephyrs it in sipbmp3 format.
View mpris-zephyr.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 #!/usr/bin/env python3 import dbus import sys from zwrite import zwrite # You can find zwrite.py at https://gist.github.com/vulpicastor/809952a8a65c808a882f import platform, getpass BUS_PREFIX = "org.mpris.MediaPlayer2" OBJECT_PATH = "/org/mpris/MediaPlayer2"
Created Dec 28, 2015
An HTTP 418 error page, with apologies to web.mit.edu.
View mit418.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 MIT 418 Error - I’m a teapot
Last active Dec 28, 2015
A Python wrapper for zwrite that shells out to send zephyrgrams.
View zwrite.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 #!/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.
Created Dec 30, 2015
A simple script to rotate your zlog.
View zlogrotate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 #!/bin/sh ZCLASS=$1 DATE=date +%F PRESS='xz' if [ -n "$ZCLASS" ] then mv -i "$ZCLASS" "$ZCLASS.$DATE" &&$PRESS "$ZCLASS.$DATE" || ( echo Failed; exit 1 ) else
Created Jul 21, 2016
Ancient placeholder for sl2.xyz
View sl2.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 Welcome to SL₂(ℤ)!
Created Jul 27, 2016
An example of gpg.conf with sane settings; h/t https://riseup.net/en/gpg-best-practices
View gpg.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 charset utf-8 keyserver hkp://pool.sks-keyservers.net keyserver-options no-honor-keyserver-url keyid-format 0xlong with-fingerprint personal-digest-preferences SHA512 cert-digest-algo SHA512
Created Oct 14, 2016
A parser and Zephyr nottification bot for park.io's auctions
View check_parkio.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 #!/usr/bin/env python3 import requests import time from datetime import datetime import pytz from zwrite import zwrite PARKIO_DOMAIN = "https://app.park.io" AUCTION_PATH = "/auctions.json"
Created Oct 27, 2016
OpenPGP Key Transition Statement from Lizhou Sha (2016-10-27)
View slz-pgp-key-transition-2016-10-27.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 -----BEGIN PGP SIGNED MESSAGE----- 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.
Created Feb 25, 2017
A simple shell script that uses xclip to clear all the clipboards of X
View uclip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 #!/bin/bash XCLIP=which xclip if [ -z $XCLIP ]; then echo "Please install xclip" fi$XCLIP /dev/null \$XCLIP -selection clipboard /dev/null