Status: working Adapter: ASUS BLE4.0
$ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
javascript:var bulkConfig={path:"/movies/",good:0.95,okay:0.75};jQuery.getScript("http://glench.github.io/fuzzyset.js/lib/fuzzyset.js",function(){var e=jQuery;var g=bulkConfig.path;var b=bulkConfig.good;var f=bulkConfig.okay;var c="rgba(0, 255, 0, 0.2)";var a="rgba(255, 255, 0, 0.2)";var d="rgba(255, 0, 0, 0.2)";e("div#x-movies-bulk table tbody tr").each(function(){var i=e(this).find(".series-title-cell");var m=e(i[0]);var j=e(i[1]);var h=m.find("a").text().trim();var l=j.clone().children().remove().end().text().replace(g,"").trim();cleaner=/[^a-z0-9]/ig;h=h.replace(cleaner,"");l=l.replace(cleaner,"");fz=FuzzySet([h]);score=fz.get(l)[0][0];if(!m.find(".score").length){m.append('<span><br><em>Match: <span class="score"></span>%</em></span>')}m.find(".score").text(Math.round(score*100));var k=true;if(score>=b){e(this).css("background-color",c)}else{if(score>=f){e(this).css("background-color",a)}else{k=false;e(this).css("background-color",d)}}$select=e(this).find(".select-row-cell input");if($select.prop("checke |
#!/bin/bash | |
# | |
# Perform local backups of Gitter.im chat rooms. | |
GITTER_ARCHIVE_URL="https://gitter.im/%s/archives/%s" | |
usage() { | |
echo "usage: $(basename $0) -f -r <chat-room> [-o <output-dir>] [-s <YYYY/MM/DD>] [-e <YYYY/MM/DD>]" 1>&2 | |
exit 1 | |
} |
homeassistant: | |
# Name of the location where Home Assistant is running | |
name: Home | |
# Location required to calculate the time the sun rises and sets | |
latitude: 32.8208 | |
longitude: -97.0107 | |
# Impacts weather/sunrise data (altitude above sea level in meters) | |
elevation: 196 | |
# metric for Metric, imperial for Imperial | |
unit_system: imperial |
/** | |
* Simple NodeJS UDP forwarding server | |
* | |
* @author dale3h | |
* | |
* This script was built to run on a Raspberry Pi that is connected to two networks (wired + wireless). | |
* By default it listens on port 443, but only serves HTTP (not HTTPS) | |
* | |
* @usage | |
* http://192.168.1.102:443/send-udp?host=192.168.1.113&port=12345&device=wlan0&command=PACKET_CONTENTS |