Skip to content

Instantly share code, notes, and snippets.

View nhorvath's full-sized avatar

Nick Horvath nhorvath

  • Scivantage
  • Fort Salonga, NY
View GitHub Profile
@nhorvath
nhorvath / gpio.sh
Last active July 13, 2016 16:07 — forked from jefflarkin/gpio.sh
BASH functions for using the C.H.I.P. GPIO pins.
#!/bin/bash
GPIO_OFFSET=408
CSI_OFFSET=132
#FIXME Add usage() function to improve documentation
# Enable exposure of the specified GPIO pin (0-8)
gpio_enable()
{
if [[("$1" -lt 0) || ("$1" -gt 8)]] ; then
2015-07-27 21:52:59 ERROR SEARCHQUEUE-DAILY-SEARCH :: [KickAssTorrents] :: Fatal error executing query: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
2015-07-27 21:52:59 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [Rarbg] :: Attempting to add item to cache: The.Last.Ship.S02E07.HDTV.x264-LOL[rartv]
2015-07-27 21:52:59 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [ThePirateBay] :: Transaction with 17 queries executed
2015-07-27 21:52:59 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [KickAssTorrents] :: Unable to parse the filename Idris.Elba.No.Limits.S01E04.HDTV.DailyFliX.XviD.avi into a valid show
2015-07-27 21:52:59 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [KickAssTorrents] :: Attempting to add item to cache: Idris.Elba.No.Limits.S01E04.HDTV.DailyFliX.XviD.avi
2015-07-27 21:52:59 DEBUG SEARCHQUEUE-DAILY-SEARCH :: [KickAssTorrents] :: Unable to parse the file