Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jthub on github.
  • I am jtonline (https://keybase.io/jtonline) on keybase.
  • I have a public key whose fingerprint is 5285 D8BF FD41 933A D303 999A F51C 90AC 900E A68D

To claim this, I am signing this object:

@jt-nti
jt-nti / mqttjogglermashup.c
Created October 5, 2015 14:24 — forked from anonymous/mqttjogglermashup.c
Simply publishes the Joggler light level reading to MQTT.
/*
* Basic mash up of Andrew de Quincey's Joggler light sensor code
* and sample MQTT client code to publish light sensor reading
* messages.
* For more info. see:
* http://code.google.com/p/adqmisc/source/browse/trunk/joggler/readlightsensor.c
* http://www.eclipse.org/paho/files/mqttdoc/Cclient/
* http://jtlog.wordpress.com/2013/02/07/mqtt-joggler/
*/
#include "stdio.h"
@jt-nti
jt-nti / check-sharedfolder.sh
Created October 29, 2015 11:37
Quick test to see if a Vagrant sharedfolder supports long paths and symlinks on a Windows host. Hopefully this will be much easier soon... https://github.com/mitchellh/vagrant/issues/6409
#!/bin/sh
mkdir -p $PWD/Lorem/ipsum/dolor/sit/amet/consectetur/adipiscing/elit/Curabitur/in/dolor/non/eros/porta/congue/ut/et/lectus/Nam/maximus/ultricies/ipsum/dictum/lobortis/Fusce/accumsan/faucibus/faucibus/Nunc/vel/fermentum/elit/Nam/purus/nunc/malesuada/eget/scelerisque/eget/molestie/vitae/ex/Aliquam/bibendum/ante/vitae/leo/maximus/id/tempor/leo/condimentum/Suspendisse/posuere/non/metus/et/mattis/Duis/fringilla/lectus/eget/viverra/placerat/augue/lacus/tristique/nunc/eu/egestas/urna/risus/fermentum/mi/Donec/laoreet/augue/et/ullamcorper/sagittis/Nulla/euismod/elit/eget/luctus/aliquet/augue/purus/ultrices/mauris/eu/ultricies/sem/nulla/at/justo/Pellentesque/bibendum/lorem/metus/non/bibendum/mauris/tincidunt/ut/Nam/convallis/risus/massa/at/egestas/sem/pretium/quis/Morbi/sodales/luctus/eros/Quisque/tempor/sem/eget/rhoncus/ullamcorper/Phasellus/in/vulputate/odio/Mauris/ac/commodo/ex/Aliquam/ornare/massa/eget/tellus/laoreet/in/tristique/elit/volutpat/Quisque/quis/molestie/nisi/Suspendisse/pellentesque/vehicula/
@jt-nti
jt-nti / Keybase-IO.ps1
Last active February 16, 2016 21:32
Attempting to use keybase.io API with PowerShell
<#
.SYNOPSIS
Keybase experiment.
.DESCRIPTION
Beginnings of a PowerShell script to post a Keybase signature announcement. Still not finished but the following commands do work, which is nice.
.PARAMETER SignedJsonPath
A file containing the signed JSON Object, e.g. created using the following command,
gpg2 -u "..." -a --sign keybase-json.txt
.PARAMETER Session
.PARAMETER CsrfToken
Verifying that +jtonline is my blockchain ID. https://onename.com/jtonline
@jt-nti
jt-nti / gulpfile.js
Created February 29, 2016 11:16
Attempting to make Gulp work, e.g. it would be nice if it actually exited after tasks finish. Work in progress!
'use strict';
var gulp = require('gulp'),
del = require('del');
var distFolder = './dist';
gulp.task('clean', function () {
return del([distFolder]);
});
@jt-nti
jt-nti / tjbot-notes.md
Last active June 26, 2017 12:21
TJ Bot notes

TJ Bot notes

Just a few notes in my quest to build a bot. It's worth reading Calling all Makers: Meet TJBot! if you've not already met TJ Bot!

I currently have a 3D print of the robot thanks to a friendly master inventor with a new toy. It needs a brain though!

Parts

Parts from The Pi Hut (other stores are available!)

@jt-nti
jt-nti / org.example.game.cto
Created March 17, 2017 22:26
Fabric Composer based game model
/**
* Defines a data model for a multi-player game
*/
namespace org.example.game
enum ItemType {
o POTION
o WEAPON
}
/**
* Evil model file
*/
namespace org.hyperledger.composer.system
abstract participant $Asset identified by sku {
o String sku
}