Skip to content

Instantly share code, notes, and snippets.

View Here-Be-Dragons's full-sized avatar

Jerad Jacob Here-Be-Dragons

  • Disney Signature Experiences
  • Orlando, Florida
View GitHub Profile
@Here-Be-Dragons
Here-Be-Dragons / update-powerwall-cookie.sh
Last active February 24, 2022 16:50
A fork of Vince Loschiavo's script, this grabs a cookie and then also updates a telegraf config with the new cookie values.
@Here-Be-Dragons
Here-Be-Dragons / trigger-awx-job.sh
Created August 30, 2020 13:41
Launch AWX job with survey input from Environment Variables
#!/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}"
@Here-Be-Dragons
Here-Be-Dragons / movies_in_progress.xsp
Created November 6, 2017 00:53
Kodi Movies in Progress
<?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>
@Here-Be-Dragons
Here-Be-Dragons / tv_xmas.xsp
Created November 6, 2017 00:52
Kodi Christmas TV Show Episodes Smart Playlist
<?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>
@Here-Be-Dragons
Here-Be-Dragons / movies_xmas.xsp
Created November 6, 2017 00:51
Kodi Christmas Movies Smart Playlist
<?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>
@Here-Be-Dragons
Here-Be-Dragons / fade.ino
Created December 28, 2016 02:37
Neopixel: Fade between two assigned colors
#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
@Here-Be-Dragons
Here-Be-Dragons / gist:e32d73815d0c834ef64caeb9c1e2c16b
Created August 8, 2016 17:30 — forked from tnolet/gist:7361441
Install collectd 5.4 on Centos 6.x and make it spit out cool metrics. Copied from http://linuxdrops.com/install-collectd-statistics-collecter-on-centos-rhel-ubuntu-debian/ and tweaked for your and my pleasure. For all other cool options, check the provided link.
#!/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