This has now been moved to a proper GitHub repository: https://github.com/njh/gen-webid-cert
Please submit issues and enhancements there.
// Load the TCP Library | |
net = require('net'); | |
// Keep track of the chat clients | |
var clients = []; | |
// Start a TCP Server | |
net.createServer(function (socket) { | |
// Identify this client |
/* | |
Arduino UNO reads rising edge trigger pulses on pin 2 and displays counter on | |
Sparkfun SerLCD LCD-10097 | |
Photo of setup: http://ompldr.org/vZGNlbA/photo.JPG | |
Pariksheet <p.nanda@andor.com> Mar 2012 | |
*/ | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'eventmachine' | |
require 'em-mqtt' | |
require 'sinatra/base' | |
require 'thin' | |
class WebApp < Sinatra::Base |
This has now been moved to a proper GitHub repository: https://github.com/njh/gen-webid-cert
Please submit issues and enhancements there.
# /usr/bin/notify-site-is-down.rb | |
require "rubygems" | |
require "twilio-ruby" | |
account_sid = ENV["TWILIO_ACCOUNT_SID"] | |
auth_token = ENV["TWILIO_AUTH_TOKEN"] | |
@client = Twilio::REST::Client.new account_sid, auth_token |
# Build OpenSSL 1.0.1e (or whichever) | |
$ ./Configure darwin64-x86_64-cc --prefix=/usr/local/stow/openssl-1.0.1e/ | |
$ make install | |
# Obtain and build Mosquitto | |
$ hg clone https://bitbucket.org/oojah/mosquitto | |
$ hg up -r 1.2 |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
--- mosquitto.py.orig 2013-11-12 11:41:17.000000000 +0100 | |
+++ mosquitto.py 2013-11-13 08:44:31.000000000 +0100 | |
@@ -45,6 +45,11 @@ | |
import sys | |
import threading | |
import time | |
+HAVE_DNS = True | |
+try: | |
+ import dns.resolver | |
+except ImportError: |
git config --global diff.tool bbdiff | |
git config --global difftool.bbdiff.cmd 'bbdiff --wait --resume "$LOCAL" "$REMOTE"' | |
git config --global difftool.prompt false | |
git config --global merge.tool bbdiff | |
git config --global mergetool.bbdiff.cmd 'bbdiff --wait --resume "$LOCAL" "$REMOTE"' | |
Double check ~/.gitconfig |