Skip to content

Instantly share code, notes, and snippets.

View tjdavey's full-sized avatar

Tristan Davey tjdavey

View GitHub Profile
@tjdavey
tjdavey / 999decompress_rpi_kernel
Last active February 17, 2021 05:22
Ubuntu - Durable Kernel Decompression
#/etc/apt/apt.conf.d/999decompress_rpi_kernel
DPkg::Post-Invoke {"/bin/bash /boot/firmware/auto_decompress_kernel"; }
@tjdavey
tjdavey / devnq_links_aug2019
Created July 22, 2019 13:29
Shortened Attribution Links for "Testing of a Global SAAS Product" - Alex Scott
@tjdavey
tjdavey / devnq_links_jul2019
Created July 20, 2019 23:00
Shortened Attribution Links for Mid-Year Drinkup
@tjdavey
tjdavey / devnq_links_jul2019
Created June 20, 2019 23:37
Shortened Attribution Links for Mid-Year Drinkup
@tjdavey
tjdavey / telloVideoToFs.py
Created November 26, 2018 09:36
Outputs Tello Video to a mp4 file without any Python Video dependencies. FFMPEG required.
import sys
import traceback
import tellopy
import time
from subprocess import Popen, PIPE
video_output = None
def videoFrameHandler(event, sender, data):
global video_output
@tjdavey
tjdavey / dht22particle.ino
Created June 20, 2018 07:23
Basic Particle DHT22 sensor
#include <PietteTech_DHT.h>
#include <stdlib.h>
#define DHTTYPE DHT22 // Sensor type DHT11/21/22/AM2301/AM2302
#define DHTPIN D3 // Digital pin for communications
PietteTech_DHT DHT(DHTPIN, DHTTYPE);
void setup()
{
@tjdavey
tjdavey / package.json
Created April 29, 2017 02:06
Standard Jest Configuration - Babel, Jasmine Expect and HTML Reporting
{
...
"jest": {
"coveragePathIgnorePatterns": [
"<rootDir>/dist/",
"<rootDir>/test/"
],
"coverageReporters": [
"html"
],
@tjdavey
tjdavey / cb-reconnect-test.js
Created July 29, 2016 03:41
Couchbase SDK Reconnection Test
'use strict';
var couchbase = require('couchbase');
var HOST = 'couchbase://192.168.15.223';
var BUCKET = 'test';
var KEY = 'test_key';
var TEST_INTERVAL = 500;
var cluster = new couchbase.Cluster(HOST);
var bucket = cluster.openBucket(BUCKET);