How to configure a custom Ubuntu 14.04 Athena dialup with cloud-init
Preparations
Install dependencies
apt-get install libvirt-bin virtinst cloud-img-utils
typeset -U path | |
path=(/usr/local/go/bin $path $HOME/bin $HOME/.local/bin $HOME/go/bin) |
#!/bin/bash | |
XCLIP=`which xclip` | |
if [ -z $XCLIP ]; then | |
echo "Please install xclip" | |
fi | |
$XCLIP /dev/null | |
$XCLIP -selection clipboard /dev/null |
-----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. |
#!/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" |
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 |
<!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", |
#!/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", |
# Author: Lizhou Sha <slz@mit.edu> | |
# 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" |
apt-get install libvirt-bin virtinst cloud-img-utils
#!/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 |