Skip to content

Instantly share code, notes, and snippets.

@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 / 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,
@managementboy
managementboy / fritzXMLfromCSV.php
Created April 1, 2013 17:37
FritzBox Adressbook convert from CSV to XML
<?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,
@managementboy
managementboy / cyrus2mbox.pl
Last active December 20, 2015 09:49
http://fenux.net/story/cyrustombox/print Converting Cryus mail directories to MBOXes
#cyrus2mbox.pl
#!/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,
#!/bin/perl
use Mail::Util qw(read_mbox);
use Mail::Header;
%nmon = (
'Jan' => 1,
'Feb' => 2,
'Mar' => 3,
'Apr' => 4,
#!/bin/bash
LOG=/tmp/mylog.log
SECONDS=3600
EMAIL=
managementboy@gmail.com
for i in $@; do
echo "$i-UP!" > $LOG.$i
/var/lib/mythtv/recordings3/1359263080_Real.Time.With.Bill.Maher.2013.01.25.Overtime.mp4
/var/lib/mythtv/recordings3/1360074171_BBC.Horizon.2010.Pill.Poppers.PDTV.XviD.AC3.MVGroup.org.avi
/var/lib/mythtv/recordings3/1363970246_National.Geographic.Inside.Rio.Carnival.PDTV.XviD.MP3.MVGroup.org.avi
/var/lib/mythtv/recordings3/1369935315_4209737.flv
/var/lib/mythtv/recordings3/1369935317_4209737.flv
/var/lib/mythtv/recordings3/1372178120_Real_college_amateur_teen_naked_shower_pussy_play-2856760.flv
/var/lib/mythtv/recordings3/1374860126_Teens_masturbate-3946058.flv
/var/lib/mythtv/recordings3/1375007714_Hot_teen_pornmix_by_Mr.NiceGuy-4187872.flv
/var/lib/mythtv/recordings3/1375238150_BBC.The.Mystery.of.Romes.X.Tomb.720p.HDTV.x264.AAC.MVGroup.org.mkv
/var/lib/mythtv/recordings3/1375238162_PBS.The.Buddha.720p.x264.AAC.MVGroup.org.mp4
@managementboy
managementboy / mythlink.pl
Created December 3, 2012 13:34
mythlink.pl with episodes and seasons