Skip to content

Instantly share code, notes, and snippets.

# 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.
#!/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.
#!/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.