apt-get install libvirt-bin virtinst cloud-img-utils
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
typeset -U path | |
path=(/usr/local/go/bin $path $HOME/bin $HOME/.local/bin $HOME/go/bin) |
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 |
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. |
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" |
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 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"></meta> | |
<title>Welcome to SL₂(ℤ)!</title> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Config({ | |
"HTML-CSS": { | |
availableFonts: ["Gyre-Pagella"], | |
preferredFont: "Gyre-Pagella", |
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 | |
from __future__ import print_function | |
import sys | |
import time | |
import dns.resolver, dns.exception | |
from random import randrange | |
import zwrite | |
DEFAULT_ARGS = {"classname": "test", |
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
# Author: Lizhou Sha <[email protected]> | |
# Note: This version is OUTDATED. Please refer to the latest iodine package in Debian Unstable. | |
[Unit] | |
Description=A daemon for tunneling traffic over DNS queries | |
After=network.target | |
[Service] | |
EnvironmentFile=/etc/default/iodine | |
ExecStartPre=/bin/sh -xc "test ${START_IODINED} = true" |
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 |
NewerOlder