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 / pandora_tls.sh
Last active Nov 8, 2018
Replace Pandora's old tls fingerprint with new one in pianobar config
View pandora_tls.sh
#!/bin/bash
##
## A simple little shell script that will return the current
## fingerprint on the SSL certificate and replace it in
## pianobar's config file automatically
##
## Author: William Jacoby (bonelifer) <>
##
## Base on the Github Gist by Bob Saska at: https://gist.github.com/r35krag0th/4173333
##
@bonelifer
bonelifer / compile_ncid.sh
Created Jan 23, 2016 — forked from jriguera/compile_ncid.sh
NCID on raspberry pi (arch linux)
View compile_ncid.sh
# Install compile requirements
pacman -S gcc make
# Install lib requirements for ncid
pacman -S libpcap
# Download
curl http://heanet.dl.sourceforge.net/project/ncid/ncid/1.2/ncid-1.2-src.tar.gz -o ncid-1.2-src.tar.gz
# Compile
View gist:bd8772ca72cfc9962ba1
<?php
// phpBB 3.1.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = 'localhost';
$dbport = '';
$dbname = 'dbname';
$dbuser = 'dbuser';
$dbpasswd = 'dbpass';
$table_prefix = 'phpbb_';
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
@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"
@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 / 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>
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)
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 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
You can’t perform that action at this time.