Skip to content

Instantly share code, notes, and snippets.

@managementboy
managementboy / gist:9463425
Last active August 29, 2015 13:57
Sync Facebook Events
<?php
/*
Plugin Name: Sync Facebook Events
Plugin URI: http://pdxt.com
Description: Sync Facebook Events to The Events Calendar Plugin
Author: Mark Nelson
Version: 1.0.8
Author URI: http://pdxt.com
*/
@managementboy
managementboy / theeventscalendar.diff
Created April 10, 2014 11:14
The Events Calendar Wordpress Plugin patch to add free Google Calendar link feature
--- lib/template-classes/list.php Sat Jan 25 01:41:12 2014
+++ lib/template-classes/list.php Tue Apr 08 17:32:06 2014
@@ -26,4 +26,19 @@
}
}
}
+ /**
+ * Google Calendar Link
+ *
+ * Returns an add to Google Calendar link. Must be used in the loop
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#---------------------------
# Name: delete_recordings.py
# Python Script
# Author: Raymond Wagner
# Purpose
# This python script provides a command line tool to search and
# delete recordings.
#---------------------------
@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.