I hereby claim:
- I am conoro on github.
- I am conor (https://keybase.io/conor) on keybase.
- I have a public key whose fingerprint is A22A 500F 5FEC 3633 9022 3439 654C 2A78 2D86 B677
To claim this, I am signing this object:
| /* | |
| This tool takes a blog built on Harp.js (http://harpjs.com/) with the Baseline | |
| theme (https://github.com/rosshj/baseline) and converts it into something | |
| usable by Hugo (https://gohugo.io/). It will not work out of the box for you, | |
| as it has some customisations to deal with mixed trailing/non-trailing slashes | |
| and mixed use of directories for posts. This is what happens when you go from | |
| Posterous to WordPress to Harp to Hugo! I also changed the format of _data.json | |
| to put all the posts in an array to make it easier to parse before running | |
| this tool. But it should be very easy to modify everything to suit your needs. | |
| Just run it in the directory with all the Markdown source. |
| // This particular assembly of code from three sources by Conor O'Neill. None of it copyright me. | |
| // This code copyright Brian Turek https://github.com/Caligatio/jsSHA https://github.com/Caligatio/jsSHA/blob/master/LICENSE | |
| 'use strict';(function(E){function t(c,a,e){var g=0,b=[],d=0,f,k,l,h,m,w,n,q=!1,r=!1,p=[],t=[],v,u=!1;e=e||{};f=e.encoding||"UTF8";v=e.numRounds||1;l=y(a,f);if(v!==parseInt(v,10)||1>v)throw Error("numRounds must a integer >= 1");if("SHA-1"===c)m=512,w=z,n=F,h=160;else throw Error("Chosen SHA variant is not supported");k=x(c);this.setHMACKey=function(a,b,d){var e;if(!0===r)throw Error("HMAC key already set");if(!0===q)throw Error("Cannot set HMAC key after finalizing hash");if(!0===u)throw Error("Cannot set HMAC key after calling update"); | |
| f=(d||{}).encoding||"UTF8";b=y(b,f)(a);a=b.binLen;b=b.value;e=m>>>3;d=e/4-1;if(e<a/8){for(b=n(b,a,0,x(c));b.length<=d;)b.push(0);b[d]&=4294967040}else if(e>a/8){for(;b.length<=d;)b.push(0);b[d]&=4294967040}for(a=0;a<=d;a+=1)p[a]=b[a]^909522486,t[a]=b[a]^15 |
| :: Building a Red Hat Mobile Forms Apps for Windows 8.1 | |
| :: | |
| :: | |
| :: Install Git for Windows (https://git-scm.com/download/win) | |
| :: Make sure your SSH Public Key has been uploaded to the Red Hat Mobile Application Platform Studio | |
| :: Install node.js 0.10.x (https://nodejs.org/download/) | |
| :: Install Cordova (npm install -g cordova) | |
| :: Install Visual Studio 2013 (https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx) | |
| :: See more info at http://cordova.apache.org/docs/en/4.0.0/guide_platforms_win8_index.md.html | |
| :: See matching video at https://vimeo.com/130214184 |
I hereby claim:
To claim this, I am signing this object:
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
| // transmitter.pde | |
| // | |
| // Simple example of how to use VirtualWire to transmit messages | |
| // Implements a simplex (one-way) transmitter with an TX-C1 module | |
| // | |
| // See VirtualWire.h for detailed API docs | |
| // Author: Mike McCauley ([email protected]) | |
| // Copyright (C) 2008 Mike McCauley | |
| // $Id: transmitter.pde,v 1.3 2009/03/30 00:07:24 mikem Exp $ |
| // receiver.pde | |
| // | |
| // Simple example of how to use VirtualWire to receive messages | |
| // Implements a simplex (one-way) receiver with an Rx-B1 module | |
| // | |
| // See VirtualWire.h for detailed API docs | |
| // Author: Mike McCauley ([email protected]) | |
| // Copyright (C) 2008 Mike McCauley | |
| // $Id: receiver.pde,v 1.3 2009/03/30 00:07:24 mikem Exp $ |
| Verifying myself: My Bitcoin username is +conor. https://onename.io/conor |
| /* HC-SR04 Sensor | |
| https://www.dealextreme.com/p/hc-sr04-ultrasonic-sensor-distance-measuring-module-133696 | |
| This sketch reads a HC-SR04 ultrasonic rangefinder and returns the | |
| distance to the closest object in range. To do this, it sends a pulse | |
| to the sensor to initiate a reading, then listens for a pulse | |
| to return. The length of the returning pulse is proportional to | |
| the distance of the object from the sensor. | |
| The circuit: |
| #!/bin/bash | |
| export AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY | |
| export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY | |
| export PASSPHRASE=YOU_PASSHRASE | |
| # directories, space separated | |
| SOURCE="/home/thomas/backup /home/thomas/bin /home/thomas/documents" | |
| BUCKET=s3+http://mybucket | |
| LOGFILE=/home/thomas/tmp/duplicity.log | |
| # set email to receive a backup report |