#!/usr/bin/env python
"""Simple wrapper to update Transmission's IPv4 binding on startup for use with VPNs.
(For Linux systems. Tested on Ubuntu 14.04 LTS)
import json, os, subprocess
VPN_IF = "tun0"
TRANSMISSION_CFG = os.path.expanduser('~/.config/transmission/settings.json')
View firefox_migration.rst

Disaster Plans for Firefox XUL Sunset

Public URL:Github Gist
Status: Incomplete
Last Updated:2017-06-01 05:08 EDT

Threat Summary

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Check if all processes matching a name were started after a config
file's mtime.
Tested under Python 2.7 and 3.4
View sftpget.bat
@echo off
REM Usage:
REM 1. Set up your DOS network and packet drivers
REM 2. Install sftpd386.exe
REM 3. Edit the line which calls sftpd386.exe for path/credentials/IP address
REM 4. Run "sftpget file1 file2 file3 ..."
REM Write sftp script
@echo off
#!/usr/bin/env python
"""python-xlib example which reacts to changing the active window/title.
- Python
- python-xlib
Tested with Python 2.x because my Kubuntu 14.04 doesn't come with python-xlib
for Python 3.x.
# Sources:
# -
# -
echo "* Adding file-type icons..."
for SIZE in 16 32 64; do
echo "* Adding ${SIZE}px icon"
xdg-icon-resource install --context mimetypes --size "$SIZE" "/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/mpv.png" application-x-mpv-edl
View wakeme
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""Wrapper script for scheduling an alarm within the desktop session so
MPV has access to the audio and video outputs.
See --help output for more details.
- python-dateutil
- pytimeparse
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# pylint: disable=line-too-long
"""Utility for generating MPV EDL files to skip recurring post-roll ads.
1. Use MPV's screenshot hotkey to extract a frame that's consistently present
at the boundary between the content and the ad.
#!/usr/bin/env python
"""This script should work as a way to extract only changed lines from a
pair of MaGOG dumps in a format that can be imported into a spreadsheet
# Minimal argument-reading for proof of concept (I'd use argparse instead)
from sys import argv
import difflib, re
OLD_WID="$(xdotool getactivewindow)"
until [ -n "$WID" ]; do
WID="$(xdotool search --name '[-][ ]SMPlayer' 2>/dev/null)"
echo "$WID"