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 | |
# Kicks off a Job Template, and waits for it to finish. | |
function LogIt { | |
LEVEL=$1 | |
MESSAGE=$2 | |
if [ "$LEVEL" = "SUCCESS" ]; then | |
echo -e "[\033[32m✔\033[0m]\t\033[32m${LEVEL}:\033[0m ${MESSAGE}" | |
elif [ "$LEVEL" = "INFO" ]; then | |
echo -e "[•]\t${LEVEL}: ${MESSAGE}" |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<smartplaylist type="movies"> | |
<name>In progress movies</name> | |
<match>all</match> | |
<rule field="inprogress" operator="true" /> | |
<order direction="descending">lastplayed</order> | |
</smartplaylist> |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<smartplaylist type="episodes"> | |
<name>TV - All Christmas</name> | |
<match>one</match> | |
<rule field="title" operator="contains"> | |
<value>christmas</value> | |
</rule> | |
<rule field="plot" operator="contains"> | |
<value>christmas</value> | |
</rule> |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<smartplaylist type="movies"> | |
<name>Movies - All Christmas</name> | |
<match>one</match> | |
<rule field="title" operator="contains"> | |
<value>christmas</value> | |
</rule> | |
<rule field="plot" operator="contains"> | |
<value>christmas</value> | |
</rule> |
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
#include "application.h" | |
#include "neopixel/neopixel.h" | |
SYSTEM_MODE(AUTOMATIC); | |
// Define which pins are connected with a 1-10M resistor. | |
// The first pin will be connected to the touch sensor | |
// and must be D0, D1, D2, D3, D4 A0, A1, A3, A4, A5, A6, A7 | |
// see: http://docs.spark.io/firmware/#interrupts-attachinterrupt |
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 | |
# Perform installation as root | |
# Install prereqs | |
SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-perl libgcrypt-devel gcc make gcc-c++ yajl yajl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker | |
# Get Collectd, untar it, make it and install |