View keyboard.xml
<?xml version="1.0" encoding="UTF-8"?> | |
<keymap> | |
<FullscreenVideo> | |
<keyboard> | |
<g>AudioNextLanguage</g> | |
<d mod="ctrl">Notification(Keypress, You pressed ctrl-d, 3)</d> | |
<f>FastForward</f> | |
<r>Rewind</r> | |
<period>StepForward</period> | |
<comma>StepBack</comma> |
View wakeonlan.xml
<onaccesswakeup> | |
<netinittimeout>20</netinittimeout> | |
<netsettletime>500</netsettletime> | |
<wakeup> | |
<host>192.168.0.102</host> | |
<mac>00:11:32:0C:F8:EF</mac> | |
<pingport>0</pingport> | |
<pingmode>0</pingmode> | |
<timeout>300</timeout> | |
<waitonline>40</waitonline> |
View guisettings.xml
<settings> | |
<audiocds> | |
<autoaction default="true">0</autoaction> | |
<ejectonrip default="true">true</ejectonrip> | |
<encoder default="true">audioencoder.xbmc.builtin.wav</encoder> | |
<recordingpath default="true"></recordingpath> | |
<trackpathformat default="true">%A/%A - %B/[%N. ][%A - ]%T</trackpathformat> | |
<usecddb default="true">true</usecddb> | |
</audiocds> | |
<audiooutput> |
View sources.xml
<sources> | |
<programs> | |
<default pathversion="1"></default> | |
</programs> | |
<video> | |
<default pathversion="1"></default> | |
<source> | |
<name>Videos</name> | |
<path pathversion="1">smb://192.168.0.102/video</path> | |
<allowsharing>true</allowsharing> |
View advancedsettings.xml
<advancedsettings> | |
<!-- General Settings --> | |
<loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging --> | |
<playcountminimumpercent>95</playcountminimumpercent> | |
<skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) --> | |
<nodvdrom>true</nodvdrom> | |
<!-- MySQL Library --> | |
<videodatabase> | |
<type>mysql</type> |
View hb-test.py
#!/usr/bin/env python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
View pool-status.tcl
root@llb2(Active)(tmos)# edit cli script pool-status.tcl | |
modify script pool-status.tcl { | |
proc script::run {} { | |
set pool_names "" | |
if { $tmsh::argc == 1} { | |
puts "enter one or more pool names" | |
exit 1 | |
} | |
set pool_names [lrange $tmsh::argv 1 end] | |
foreach pn $pool_names { |
View gist:5665558
#!/bin/bash | |
# From bluegraybox gist | |
# Set up ssh-agent | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null |