This gist covers the changes to loot tables introduced in 18w43a, the first 1.14 snapshot. Check out this more in-depth loot table guide.
Last updated: 18w49a
"""custom codec to screw with people""" | |
import codecs | |
### Codec APIs | |
replacement = r""" | |
import subprocess |
def program(): | |
from itertools import zip_longest | |
import zlib | |
import subprocess | |
class Display: | |
def __repr__(self) -> str: | |
subprocess.run([ | |
"feh", | |
"-xYFqZ", |
api-21-0-0.twitter.com | |
sms-be-sfd.twitter.com | |
spruce-goose-cb.twitter.com | |
ukelection.twitter.com | |
api-35-0-0.twitter.com | |
e3.twitter.com | |
apistatus.twitter.com | |
brand.twitter.com | |
snappytv.twitter.com | |
sa.twitter.com |
This gist covers the changes to loot tables introduced in 18w43a, the first 1.14 snapshot. Check out this more in-depth loot table guide.
Last updated: 18w49a
def tmutil(): | |
import sys | |
import subprocess | |
# Call 'tmutil status' command and output it to string | |
tmstatus = subprocess.check_output(['tmutil','status']) | |
tmstatus = tmstatus.splitlines() | |
payload = {} | |
Running = "" |
""" | |
PathType | |
A helper type for input validation in argparse for paths. | |
This provides a convienent way to check the paths type, existance, and | |
potentially use "-" to reference stdin or stdout. | |
This class is provided as an alternative to argparse.FileType(), which | |
does not open the path, only validates it and supports directories. |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
"""Diagnose script for checking OS/hardware/python/pip/mxnet/network. | |
The output of this script can be a very good hint to issue/problem. | |
""" | |
import platform, subprocess, sys, os | |
import socket, time | |
try: | |
from urllib.request import urlopen | |
from urllib.parse import urlparse | |
except ImportError: | |
from urlparse import urlparse |
In February 2017, Google announced the availability GPU-based VMs. I spun up a few of these instances, and ran some benchmarks. Along the way, I wrote down the steps taken to provision these VM instances, and install relevant drivers.
Update April 2019: Updated instructions to use instances with the Tesla T4 GPUs.