This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n "GitHub User: " | |
read USER | |
echo -n "GitHub Password: " | |
read -s PASS | |
echo "" | |
echo -n "GitHub Repo (e.g. foo/bar): " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings = { | |
'hostname': '192.168.0.250', | |
'port': '80', | |
'username': 'xbmc', | |
'password': 'xbmc' | |
} | |
http_address = 'http://%s:%s/jsonrpc' % (settings['hostname'], settings['port']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo deleting local files older than a week... | |
find /media/data/backup/* -mtime +7 -type f -delete | |
echo backuping up /dev/mmcblk0p1... | |
if [ ! -f /media/data/backup/$(date +%Y%m%d)_mmcblk0p1.img ]; then | |
dd if=/dev/mmcblk0p1 of=/media/data/backup/$(date +%Y%m%d)_mmcblk0p1.img | |
fi | |
echo backuping up /dev/mmcblk0p2... |
OlderNewer