Skip to content

Instantly share code, notes, and snippets.

KERNEL=="kvm", GROUP="kvm"
run_command: calling: test
udevadm_test: version 141
parse_file: reading '//lib/udev/rules.d/40-alsa.rules' as rules file
parse_file: reading '//lib/udev/rules.d/40-infiniband.rules' as rules file
parse_file: reading '//lib/udev/rules.d/40-isdn.rules' as rules file
parse_file: reading '//lib/udev/rules.d/40-slackware.rules' as rules file
parse_file: reading '//lib/udev/rules.d/40-zaptel.rules' as rules file
parse_file: reading '//lib/udev/rules.d/50-firmware.rules' as rules file
parse_file: reading '//lib/udev/rules.d/50-udev-default.rules' as rules file
parse_file: reading '//lib/udev/rules.d/55-hpmud.rules' as rules file
Codec: Conexant CX20561 (Hermosa)
Address: 0
Function Id: 0x2
Vendor Id: 0x14f15051
Subsystem Id: 0x103c30cf
Revision Id: 0x100000
Modem Function Group: 0x2
Default PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#!/usr/bin/env python
from pysqlite2 import dbapi2 as sqlite
import time, sys, os, tagpy
connection = sqlite.connect(':memory:')
cursor = connection.cursor()
cursor.execute('CREATE TABLE file (path VARCHAR(255) PRIMARY KEY, timestamp DECIMAL(12), size INTEGER(12), copy BOOLEAN)')
cursor.execute('CREATE TABLE track (id INTEGER PRIMARY KEY, name VARCHAR(255), artist_id INTEGER, album_id INTEGER, genre_id INTEGER, length INTEGER)')
cursor.execute('CREATE TABLE album (id INTEGER PRIMARY KEY, name VARCHAR(255), year INTEGER(4))')
cursor.execute('CREATE TABLE artist (id INTEGER PRIMARY KEY, name VARCHAR(255))')
#!/usr/bin/env python
#
# filename - desc
#
# Copyright 2009 John Tyree <johntyree@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#! /usr/bin/env python
"""
Traduisons!
http://traduisons.googlecode.com
Uses Google Translate from the terminal
Arabic and Persian are borked.
Check out scale widgets?
Some issue with 'auto'. Often unable to translate.
Works with proper language selected.
#! /usr/bin/env python
"""
Traduisons!
http://traduisons.googlecode.com
Uses Google Translate from the terminal
Arabic and Persian are borked.
Check out scale widgets?
Some issue with 'auto'. Often unable to translate.
Works with proper language selected.
#!/usr/bin/env python
#
# filename - desc
#
# Copyright 2009 John Tyree <johntyree@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#!/usr/bin/env python
#
# filename - desc
#
# Copyright 2009 John Tyree <johntyree@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.