Skip to content

Instantly share code, notes, and snippets.

William Jacoby bonelifer

Block or report user

Report or block bonelifer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bonelifer
bonelifer / xml-json
Created Nov 12, 2014
AMC - XML/JSON
View xml-json
From tv_grab_na_dd:
<channel id="I10021.labs.zap2it.com">
<display-name>32 AMC</display-name>
<display-name>32 AMC AR03460:X</display-name>
<display-name>32</display-name>
<display-name>AMC</display-name>
<display-name>AMC</display-name>
<display-name>Satellite</display-name>
</channel>
View setup github issues labels.sh
#!/bin/bash
echo -n "GitHub User: "
read USER
echo -n "GitHub Password: "
read -s PASS
echo ""
echo -n "GitHub Repo (e.g. foo/bar): "
View setup github issues labels.sh
USER=rentzsch
PASS=mypassword
REPO=mogenerator
# Delete default labels
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid"
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question"
View mythtvepisodes
#!/usr/bin/perl -w
################################################################
#
# Calling this script with a parameter results in data for a
# given tv show being screen scraped from epguides.com and
# added to the episode table.
#
# Calling this script without a parameter results in the
# program table being checked for shows that need to be marked
# as already recorded so we can avoid recording episodes we
View appswitch.pl
#!/usr/bin/perl -w
###############################################################################################################################
## Name: appswitch.pl
##
## Purpose: Executed by irexec this script will cycle between mythtv and kodi using a single button.
##
## (C)opyright 2008 Arksoft.
##
## Author: Arkay
##
View dump_channels.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'rexml/document'
require 'mysql2'
require 'date'
HOME_CONFIG = "#{ENV['HOME']}/.mythtv/config.xml"
ETC_CONFIG = "/etc/mythtv/config.xml"
if File.exist?(HOME_CONFIG)
@bonelifer
bonelifer / Home.xml
Last active Sep 14, 2015 — forked from palaniraja/Complete.home.xml
KODI always display IP in homescreen (confluence) - Path /Applications/Kodi.app/Contents/Resources/Kodi/addons/skin.confluence/720p/Home.xml
View Home.xml
<control type="label">
<description>IP Address</description>
<left>200</left>
<top>5</top>
<height>49</height>
<width min="200" max="300">auto</width>
<label>IP: $INFO[Network.IPAddress]</label>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
@bonelifer
bonelifer / update-library.py
Last active Sep 14, 2015 — forked from kevinkhill/update-library.py
Update XBMC/KODI Video Library
View update-library.py
settings = {
'hostname': '192.168.0.250',
'port': '80',
'username': 'xbmc',
'password': 'xbmc'
}
http_address = 'http://%s:%s/jsonrpc' % (settings['hostname'], settings['port'])
@bonelifer
bonelifer / mysql_backup.sh
Last active Sep 14, 2015
mysql weekly Backup Script
View mysql_backup.sh
#!/bin/sh
now="$(date +'%d_%m_%Y_%H_%M_%S')"
filename="mysql-kodi_backup_$now".gz
backupfolder="/media/5a24e136-09b9-48e1-95db-b44d5db3e28a/Backup/mysql"
fullpathbackupfile="$backupfolder/$filename"
logfile="$backupfolder/"backup_log_"$(date +'%Y_%m')".txt
echo "mysqldump started at $(date +'%d-%m-%Y %H:%M:%S')" >> "$logfile"
mysqldump --user=xbmc --password=xbmc --default-character-set=utf8 --single-transaction --all-databases | gzip > "$fullpathbackupfile"
echo "mysqldump finished at $(date +'%d-%m-%Y %H:%M:%S')" >> "$logfile"
View ubuntu-setup.sh
#update
apt-get update
# synapse app launcher
add-apt-repository ppa:synapse-core/ppa
apt-get update
apt-get install synapse
# gnome classic
apt-get install gnome-session-fallback
You can’t perform that action at this time.