Skip to content

Instantly share code, notes, and snippets.

Tom Vincent tlvince

Block or report user

Report or block tlvince

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View prowler.bash
#!/bin/bash
#
# prowler: delete unwanted files that otherwise pollute $HOME
#
# Author: Tom Vincent
# Created: 2010-07-05
WATCH_FILES="${XDG_CONFIG_HOME:-"$HOME/.config"}/${0##*/}/badfiles" # Bash-ism
LOG="${XDG_CACHE_HOME:-"$HOME/.cache"}/${0##*/}.log"
View eugene2plain.py
#!/usr/bin/python3
# eugene2plain.py
# Copyright 2010 Tom Vincent <http://www.tlvince.com/contact/>
import os
import sqlite3
DB = os.path.expanduser("~") + "/.mpdcron/stats.db"
OUT = os.path.expanduser("~") + "/plays.log"
PREFIX = "1970-01-01T00:00:00Z"
View lastexport2mpd.py
#!/usr/bin/python3
# lastexport2mpd.py
# Copyright 2010 Tom Vincent <http://www.tlvince.com/contact/>
import os
import sys
import time
file = sys.path[0] + "/exported_tracks.txt"
View libkdcraw.diff
--- PKGBUILD-old 2010-10-01 00:10:02.333334783 +0800
+++ PKGBUILD 2010-10-01 00:10:34.206668115 +0800
@@ -3,7 +3,7 @@
pkgname=libkdcraw
pkgver=0.4.1
_orig=kdegraphics
-_origpkgver=4.2.1
+_origpkgver=4.5.1
pkgrel=1
pkgdesc="libkdcraw as standalone library for digikam-slim"
View pacman-ls.sh
#!/bin/sh
#
# pacman-ls.sh: List installed packages by repo.
#
# Copyright 2010 Tom Vincent <http://www.tlvince.com/contact/>
PACKAGES="$(pacman -Sl)"
REPOS="$(echo "$PACKAGES" | cut -f1 -d ' ' | uniq)"
OUT="$HOME/bak/packages/tmp"
VERBOSE=true
View autojump-git.patch
--- PKGBUILD-old 2010-10-21 01:01:56.450000202 +0800
+++ PKGBUILD 2010-10-21 01:06:43.553333532 +0800
@@ -2,13 +2,13 @@
# Contributor: Sean Escriva <sean.escrivaATgmail.com>
pkgname=autojump-git
-pkgver=20090428
+pkgver=20101021
pkgrel=1
pkgdesc="A cd command that learns"
View gist:646815
macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[Google Mail]/Bin\"\n <delete-message>" "Gmail delete message"
View mpd-sima-pkgbuild.patch
--- PKGBUILD~ 2010-10-30 13:46:54.416667320 +0800
+++ PKGBUILD 2010-10-30 13:50:30.010000655 +0800
@@ -1,4 +1,5 @@
# Contributor: Lex Rivera <x-demon@x-demon.org>
+# Contributor: Tom Vincent <http://www.tlvince.com/contact/>
pkgname=mpd-sima
pkgver=0.6.0
pkgrel=1
@@ -15,6 +16,11 @@
View gist:700398
set status_format = "(Total: %b)───(%f %m%?n? [+%n]?%?d? [-%d]?%?t? [*%t]?)%?p?───(%p draft)?─%>─(%P)───"
View INotifyX-patch
--- PKGBUILD-old 2011-01-16 22:19:20.630000164 +0800
+++ PKGBUILD-new 2011-01-16 22:22:35.366666832 +0800
@@ -1,23 +1,21 @@
-# INotifyX: Installer: Arch
-# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
+# Maintainer: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
+# Contributor: Tom Vincent <http://www.tlvince.com/contact/>
pkgname=inotifyx
pkgver=0.1.1
You can’t perform that action at this time.