NOTE: Apologies for formatting errors, this was meant for a blog which I no longer contribute to.
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
#!/usr/bin/python | |
apiVersion = 'v5' | |
apiURL = 'https://api.thousandeyes.com' | |
urlBase = apiURL + '/' + apiVersion + '/' | |
logLevel = 3 | |
requestCount = 0 | |
uploadLimit = 10000 |
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
require "rubygems" | |
require "bundler" | |
require_relative "lib/importer" | |
Bundler.setup | |
desc "Import from Trello board" | |
task :import do | |
Importer.new(File.dirname(__FILE__)).import ENV["ISSUE"] | |
end |
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
/** | |
* ps_Nest Thermostat | |
* | |
* Copyright 2014 Patrick Stuart | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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
BUILD_DIR := gen | |
# pandoc is a handy tool for converting between numerous text formats: | |
# http://johnmacfarlane.net/pandoc/installing.html | |
PANDOC := pandoc | |
# pandoc options | |
# Liberation fonts: http://en.wikipedia.org/wiki/Liberation_fonts | |
PANDOC_PDF_OPTS := --toc --chapters --base-header-level=1 --number-sections --template=virsto_doc.tex --variable mainfont="Liberation Serif" --variable sansfont="Liberation Sans" --variable monofont="Liberation Mono" --variable fontsize=12pt --variable documentclass=book | |
PANDOC_EBOOK_OPTS := --toc --epub-stylesheet=epub.css --epub-cover-image=cover.jpg --base-header-level=1 |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
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
// A fun sketch to demonstrate the use of the Tone library. | |
// To mix the output of the signals to output to a small speaker (i.e. 8 Ohms or higher), | |
// simply use 1K Ohm resistors from each output pin and tie them together at the speaker. | |
// Don't forget to connect the other side of the speaker to ground! | |
// You can get more RTTTL (RingTone Text Transfer Language) songs from | |
// http://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentation | |
/************************************************* |
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
# Twitter stream analyser and serial activator (TSASA) | |
# | |
# This script analyses a twitter stream for keywords using the twitter | |
# streaming api - off the back of it, it then makes a serial request passing | |
# the message across to the serial device | |
# | |
# This was done fopr LCA2012 as an extension to the more code generator that | |
# Luke Weston build for the LeoStick | |
# | |
# |
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/sh | |
# ------------------------------------------------------------------------------ | |
# SOME INFOS : fairly standard (debian) init script. | |
# Note that node doesn't create a PID file (hence --make-pidfile) | |
# has to be run in the background (hence --background) | |
# and NOT as root (hence --chuid) | |
# | |
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
# INSTALL/REMOVE http://www.debian-administration.org/articles/28 |