tstamp = Math.floor(Date.parse(iso-8601-tstamp)/1000);
This file contains hidden or 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 | |
# | |
# This starts and stops shairport | |
# | |
### BEGIN INIT INFO | |
# Provides: sonos-airplay | |
# Required-Start: $network | |
# Required-Stop: | |
# Short-Description: Sonos Airplay Bridge | |
# Description: Sonos Airplay Bridge |
This file contains hidden or 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 | |
# Starts and stops node-red | |
# /etc/init.d/node_red | |
### BEGIN INIT INFO | |
# Provides: node_red | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Node Red |
This file contains hidden or 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
javascript:x=document.getElementsByTagName(%22A%22); | |
y=window.open(); | |
y.document.write(%22<HTML><HEAD></HEAD><BODY><table>%22); | |
for(n=0;n<x.length;n++){ | |
y.document.write(%22<tr><td>%22+x[n].href+%22</td></tr>%22); | |
} | |
y.document.write(%22</table></BODY></HTML>%22); | |
y.document.close(); | |
void 0; |
This file contains hidden or 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/env python | |
from datetime import timedelta, tzinfo | |
from dateutil import tz | |
from shlex import split | |
from subprocess import Popen, PIPE | |
import os | |
import plistlib | |
NOT_ENABLED = u'Not enabled.' |
This file contains hidden or 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 | |
URL=$1 | |
WORKDIR=/tmp | |
# puff.py helper location | |
PUFF=/usr/local/bin/puff.py | |
ID=`youtube-dl --get-id $URL` |
This file contains hidden or 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 | |
# reduntant check since in cygwin both options works the same way | |
if [ $OS = "cygwin" ]; then | |
BLINK1TOOL=/usr/local/bin/blink1-tool.exe | |
else | |
BLINK1TOOL=/usr/local/bin/blink1-tool | |
fi | |
# colour mapping |
NewerOlder