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/python2 | |
# rtorrent_xmlrpc | |
# (c) 2011 Roger Que <alerante@bellsouth.net> | |
# (c) 2013 Noah K. Tilton <lists@tilton.co> | |
# | |
# Python module for interacting with rtorrent's XML-RPC interface | |
# directly over SCGI, instead of through an HTTP server intermediary. | |
# Inspired by Glenn Washburn's xmlrpc2scgi.py [1], but subclasses the | |
# built-in xmlrpclib classes so that it is compatible with features |
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 | |
user=noah | |
MDIR=~/mail | |
ODIR=~/.offlineimap | |
A=Account-$user/LocalStatus | |
RL=Repository-Local/FolderValidity | |
RR=Repository-Remote/FolderValidity |
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/zsh | |
# N.K. Tilton <code@tilton.co> | |
# LICENSE: MIT | |
# | |
# summarize music directory | |
# | |
# point it at a directory to find out which directories contain .mp3 | |
# and/or .flac files, respectively |
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 python2 | |
print "ohai" |
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 ruby | |
# encoding: utf-8 | |
# | |
require 'bencode' | |
# print the list of files which are in a given directory, but not currently seeding in rtorrent | |
# | |
# This script answers the question / problem: | |
# "I have a ton of stuff downloading in rtorrent, and it's all going | |
# into one directory. What stuff from that directory can be safely |
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
pi@host ~ $ cat /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
auto wlan0 | |
iface wlan0 inet static | |
wpa-ssid myessid | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
address 192.168.1.xxx |
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/zsh | |
# simplify gnupod_addsong.pl syntax | |
# | |
# point it at a directory to add all .mp3 and .flac recursively | |
# - encodes flac to V0 (-x mp3 -e 0 flag) | |
if [ $# -eq 0 ]; then | |
echo "$0 <dir>" | |
exit -1 |
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
Bus 002 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 2.00 | |
bDeviceClass 0 (Defined at Interface level) | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 8 |
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/zsh | |
# simplify gnupod_addsong.pl syntax | |
# | |
# point it at a directory to add all .mp3 recursively | |
if [ $# -eq 0 ]; then | |
echo "$0 <dir>" | |
exit -1 | |
fi |
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 | |
# /etc/ssh/sshrc | |
# watchfile | |
ip=$(echo $SSH_CONNECTION | awk '{print $1}') | |
reverse=$(dig -x $ip +short) | |
echo $(date) | mutt -s "ssh login: $USER@$HOSTNAME from $reverse ($ip)" noahktilton@gmail.com |