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
# Import standard python modules. | |
import sys | |
import time | |
import threading | |
import os | |
import queue | |
# Import Adafruit IO MQTT client. | |
from Adafruit_IO import MQTTClient |
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 | |
file --brief --mime-type "$1" | grep "^image/" | |
if [ $? != 0 ]; then | |
zenity --error --text="'$1' does not seem to be an image file." | |
exit 1 | |
fi | |
if ! hash convert 2>/dev/null; then |
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
import sys | |
# call as | |
# python deredact.py "$(python redact.py hello world)" | |
instr = " ".join(sys.argv[1:]).replace(".", "").replace(",", "") | |
fp = open("/usr/share/dict/words") | |
words = [x.lower() for x in fp.read().split("\n")] | |
fp.close() |
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
<?php | |
// get this data by logging into icloud.com on the calendars page and looking at the dev tools | |
// as per https://translate.google.com/translate?sl=de&tl=en&js=y&prev=_t&hl=de&ie=UTF-8&u=http%3A%2F%2Fnico-beuermann.de%2Fblogging%2Farchives%2F115-Zugriff-auf-iCloud-Kalender-mit-Thunderbird.html&edit-text=&act=url | |
$account = array( | |
'server' => '', // note, this will be p12 or something, not P0; see the server that iclod.com serves json from | |
'icloudid' => '', // the "dsid" | |
'appleid' => '', // your Apple ID; will be an email address | |
'pass' => '', // password for your Apple ID | |
'calid' => '' // the "pGuid" |
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
Verifying I am +sil on my passcard. https://onename.com/sil |
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
from pelican import signals | |
import json, urllib, urlparse, datetime, html5lib, os, codecs | |
LIVESITEURL = "" | |
WM_CACHE_PATH = None | |
WM_CACHE = { | |
"domains": {}, | |
"pinged": {} | |
} |
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
"use strict"; | |
/*global process, console */ | |
function Thingy() {} | |
Thingy.prototype.returns5 = function(cb) { process.nextTick(function() { cb(null, 5); }); }; | |
Thingy.prototype.returns8 = function(cb) { process.nextTick(function() { cb(null, 8); }); }; | |
var thingy1 = new Thingy(), | |
thingy2 = new Thingy(), |
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
{ | |
"browsers": [{ | |
"chrome": { | |
"chromeOptions": { "args": ["--incognito"] } | |
} | |
}] | |
} |
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
import sublime, sublime_plugin | |
BLOCKLEN = 4 | |
class TypeFileOutCommand(sublime_plugin.TextCommand): | |
def nextchar(self): | |
if self.body: | |
totype = [] | |
while 1: | |
try: |
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
// ==UserScript== | |
// @author Stuart Langridge <[email protected]> | |
// ==/UserScript== | |
if (external.getUnityObject) { | |
window.Unity = external.getUnityObject(1.0); | |
// use the Apple touch icon as icon | |
var icnsize=0, icnurl; | |
Array.prototype.slice.call(document.querySelectorAll("link[rel='apple-touch-icon']")).forEach(function(icn) { |