View cleanup-kernel-src.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
from os import chdir, listdir
from os.path import basename, islink, realpath
from shutil import rmtree
import re
import subprocess as sp
import sys
 
 
if __name__ == '__main__':
View isync-ratings.py
1 2 3 4 5 6 7 8 9
#!/usr/bin/env python
from __future__ import print_function
import os
import subprocess as sp
import signal
import sqlite3
import sys
from os.path import expanduser
from time import sleep
View image2xterm256color.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python3
import sys
from PIL import Image
 
xterm256colors = [ # http://pln.jonas.me/xterm-colors
(0, (0x00, 0x00, 0x00)), # SYSTEM
(1, (0x80, 0x00, 0x00)), # SYSTEM
(2, (0x00, 0x80, 0x00)), # SYSTEM
(3, (0x80, 0x80, 0x00)), # SYSTEM
(4, (0x00, 0x00, 0x80)), # SYSTEM
View tmux.conf
1 2 3 4 5 6 7 8 9
unbind C-b
set -g prefix C-a
set -g history-limit 10000
bind-key a send-key C-a
bind-key C-a last-window
 
# vi mode
setw -g mode-keys vi
set -g status-keys vi
View rtorrent_xmlrpc.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/python
 
# rtorrent_xmlrpc
# (c) 2011 Roger Que <alerante@bellsouth.net>
#
# 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
# such as MultiCall objects.
View ngd.user.js
1 2 3 4 5 6 7 8 9 10
// ==UserScript==
// @name GoogleNoDoodle
// @namespace http://www.tatsh.net/
// @description Removes the doodle and moves the logo a bit upward.
// @include http://www.google.*
// @include https://www.google.*
// @include http://www.google.*/?complete=0
// @include https://www.google.*/?complete=0
// @version 0.1
// ==/UserScript==
View keybase.md

Keybase proof

I hereby claim:

  • I am tatsh on github.
  • I am tatsh (https://keybase.io/tatsh) on keybase.
  • I have a public key whose fingerprint is 60AF 74F3 88EF 4F49 31C0 8E38 1AFD 9AFC 120C 26DD

To claim this, I am signing this object:

View fonts.conf
1 2 3 4 5 6 7 8 9 10
<?xml version='1.0' ?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<dir>~/.fonts</dir>
 
<!-- Always use 96 DPI -->
<match target="pattern">
<edit mode="assign" name="dpi">
<double>96</double>
</edit>
View example-as.js
1 2 3 4 5 6 7 8 9 10
// Send a message to one person by name with Messages.app
function sendMessageTo(name, message) {
var app = Application('Messages');
var chats = app.chats(); // Get all the chats, regardless of service
var theChat;
 
for (var i = 0, len < chats.length; i < len; i++) {
chat = chats[i];
if (chat.participants().length > 1) { // Ignore 'rooms'
continue;
View sized_dated_dir.py
1 2 3 4 5 6 7 8 9
from datetime import datetime, timedelta
from os import listdir, stat
from os.path import getsize, isdir, join as path_join, realpath
import argparse
import logging
import sys
 
from Crypto.Random.random import StrongRandom
from osext.filesystem import isfile
Something went wrong with that request. Please try again.