Skip to content

Instantly share code, notes, and snippets.

@managementboy
managementboy / xorg.conf
Created September 21, 2011 09:07
My current Xorg.conf file
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 260.19.12 (buildmeister@builder101) Fri Oct 8 11:47:04 PDT 2010
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 256.35 (buildd@platinum) Tue Jul 6 22:52:15 UTC 2010
# Section "Extensions"
# Option "Composite" "Disable"
# EndSection
Section "ServerLayout"
@managementboy
managementboy / gist:1242268
Created September 26, 2011 13:48
error with getLogger
Traceback (most recent call last):
File "/usr/local/bin/mntv", line 27, in <module>
import program
File "/usr/share/mythnettv/program.py", line 34, in <module>
from plugins import bittorrent
File "/usr/share/mythnettv/plugins/bittorrent.py", line 20, in <module>
import transmissionrpc
File "/usr/local/lib/python2.7/dist-packages/transmissionrpc-0.7-py2.7.egg/transmissionrpc/__init__.py", line 5, in <module>
from transmissionrpc.constants import DEFAULT_PORT, DEFAULT_TIMEOUT, STATUS, PRIORITY, RATIO_LIMIT, LOGGER
File "/usr/local/lib/python2.7/dist-packages/transmissionrpc-0.7-py2.7.egg/transmissionrpc/constants.py", line 7, in <module
@managementboy
managementboy / stream_flv.pl
Created October 11, 2011 14:20
pseudostreaming for mythweb with ffmpeg -ss instead of tail
#!/usr/bin/perl
#
# MythWeb Streaming/Download module
#
# @url $URL$
# @date $Date$
# @version $Revision$
# @author $Author$
#
@managementboy
managementboy / handler.pl
Created October 12, 2011 08:51
modified handler.pl for pseudostreaming
#!/usr/bin/perl
#
# MythWeb Streaming/Download module
#
#
# Necessary constants for sysopen
use Fcntl;
# Other includes
@managementboy
managementboy / detail.php
Created October 12, 2011 08:52
modified detail.php for pseudostreaming
<?php
/**
* This displays details about a program, as well as provides recording
* commands.
*
* @license GPL
*
* @package MythWeb
* @subpackage TV
*
@managementboy
managementboy / channel_numbers_update_de.sql
Created May 9, 2012 11:12
Update the Channel numbers to be those we want them on Astra 19 germany
# This is a script to order the channels according to your personal taste
# after a mythtv channel scan
# With this you are able to reapply the ordering again if something went wrong.
# It is for Astra 19.2E german channels
# It already contains the new HD channels of ARD and ZDF which are available
# since 01.05.2012
# apply this script this way:
#mysql -uroot mythconverg < channel_numbers_update_DE.sql > output.tab
# OR:
# . .mythtv/mysql.txt; mysql --database=${DBName} --user=${DBUserName} --password=${DBPassword} < channel_numbers_update_DE.sql
@managementboy
managementboy / cyrus2mbox.pl
Created November 2, 2012 12:50
This program converts cyrus style mail directories into mbox files.
#!/usr/bin/perl
# cyrus2mbox.pl
##################
# This program converts cyrus style mail directories into mbox files.
#
# Written by Jason Burgess of HolosTek, Inc.
#
# This program is provided under the "I don't really care what you do with it,
# but I'm not going to support it" license.
@managementboy
managementboy / php5downgrade.sh
Created November 28, 2012 14:12
php5downgrade.sh
#!/bin/bash
#
# Original for 5.3 by Ruben Barkow (rubo77) http://www.entikey.z11.de/
# release 1 PHP5.4 to 5.3 by Emil Terziev ( foxy ) Bulgaria
# Originally Posted by Bachstelze http://ubuntuforums.org/showthread.php?p=9080474#post9080474
# OK, here's how to do the Apt magic to get PHP packages from the precise repositories:
echo "Am I root? "
if [ "$(whoami &2>/dev/null)" != "root" ] && [ "$(id -un &2>/dev/null)" != "root" ] ; then
@managementboy
managementboy / mythlink.pl
Created December 3, 2012 13:34
mythlink.pl with episodes and seasons
@managementboy
managementboy / gist:4642109
Created January 26, 2013 12:46
// Konvertiert CSV Dateien ins FRITZ!Box XML Telefonbuchdateien // Copyleft 2011, tomix // 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 // any later version. // This program is distr…
<?php
// Konvertiert CSV Dateien ins FRITZ!Box XML Telefonbuchdateien
// Copyleft 2011, tomix
// 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
// any later version.
// This program is distributed in the hope that it will be useful,