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
<?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_'; |
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/sh | |
user=$1 | |
realm=$2 | |
pass=$3 | |
hash=`echo -n "$user:$realm:$pass" | md5sum | cut -b -32` | |
echo "$user:$realm:$hash" | |
echo "$user:$realm:$hash" >> /etc/lighttpd/.htpasswd/lighttpd-htdigest.user |
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... |
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 | |
# | |
# Tell MythTV to truly delete all recordings in the "Deleted" recgroup | |
# | |
# @url $URL$ | |
# @date $Date$ | |
# @version $Revision$ | |
# @author $Author$ | |
# |
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
# File: /etc/udev/rules.d/85-external-drive-rule.rules | |
# Rules for auto-mounting/unmounting USB drives | |
ACTION=="add", ENV{ID_MODEL}=="USB_to_ATA_ATAPI_bridge", ENV{ID_VENDOR_ID}=="152d", ENV{ID_MODEL_ID}=="2338", RUN+="/usr/local/bin/automount.sh" | |
ACTION=="remove", ENV{ID_MODEL}=="USB_to_ATA_ATAPI_bridge", ENV{ID_VENDOR_ID}=="152d", ENV{ID_MODEL_ID}=="2338", RUN+="/usr/local/bin/unmount.sh" | |
# Notes: | |
# To detect your own drive's ID_MODEL, ID_MODEL_ID, and ID_VENDOR_ID, run "udevadm monitor --environment --udev" before plugging/unplugging the drive | |
# To force udev to reload these rules (without reboot), run "udevadm control --reload-rules" and "udevadm trigger" | |
# To change udev's logging level (written to /var/log/syslog), you can run "udevadm control --log-priority=info" (or debug), or configure it via /etc/udev/udev.conf |
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
### This should be run from /sdcard/Android/data/org.xbmc.kodi/files | |
tar cvzf /usbdisk/kodi_backup.tar.gz --exclude=.kodi/userdata/Database/Textures13.db --exclude=.kodi/userdata/Thumbnails --exclude=.kodi/temp .kodi |
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/python | |
''' | |
Very simple XBMC/Kodi controller via http POST request and JSONRPC | |
(testing the principle..) | |
''' | |
import httplib | |
import sys, argparse | |
import json | |
PI = '192.168.162.33' |
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
<?php | |
/** | |
* | |
* @package Support Toolkit - Reparse BBCode | |
* @version $Id$ | |
* @copyright (c) 2009 phpBB Group | |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License | |
* | |
*/ |
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 | |
# KODI | |
# Parameters: | |
# UL - update library | |
# CL - clean library | |
# UAL - update audio library | |
# CAL - clean audio libary | |
# QUIT - Quit KODI | |
## Don't edit this |