Skip to content

Instantly share code, notes, and snippets.

@cjdell
cjdell / TP-Link Tapo C110 OpenIPC.md
Last active February 24, 2024 18:15
TP-Link Tapo C110 OpenIPC
@cjdell
cjdell / boot1.log
Created November 4, 2023 13:39
SSC333 Boot Log
IPL g77fc04e
D-15
HW Reset
SPI 54M
64MB
BIST0_0001-OK
MXP found at 0x0000f000
@cjdell
cjdell / Program.cs
Last active February 23, 2024 01:17
Chevy Volt / Opel Ampera SHVCS DTC Clearing
/* This is an experimental script which I used to successfully clear the "Service High Voltage Charging System" message which can occur due to a loss of isolation.
* Previously I had to pay frequently to access the expensive SPS programming system to clear this code whilst attempting to resolve the underlying cause.
* This script was generated by a tool I developed to analyse J2534 log files.
* This could work for other cars but I can't comment on success. Please do not run this unless you understand the consequences!
* I intend to convert to a version that will work with ELM327 once I learn how these work.
* The program requires the J2534-Sharp library as a dependency.
* https://github.com/BrianHumlicek/J2534-Sharp
*/
using System;
using System.Linq;
@cjdell
cjdell / test.ts
Created January 21, 2019 20:28
Function accepts interface key of specific types
interface Colours {
red: string;
green: string;
blue: string[];
}
let colours: Colours;
export type PropertyNamesOfType<T, TT> = { [K in keyof T]: T[K] extends TT ? K : never }[keyof T] & string;
@cjdell
cjdell / Pizza Recipe.js
Last active August 14, 2018 12:13
Recipes
const bowl = new Bowl();
bowl.add(Water.ml(300));
bowl.add(Suger.tablespoon(1));
bowl.stir();
bowl.add(Yeast.grams(8));
time.sleep(Duration.minutes(10));
@cjdell
cjdell / wordpress-lamp.md
Last active May 12, 2018 13:25
Docker Cheatsheet
@cjdell
cjdell / viewerframe.jsp
Created December 12, 2017 13:38
Sitedesk Viewer
<%--
* Copyright IBM Corporation 2009-2017
*
* Licensed under the Eclipse Public License - v 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or agreed to in writing, software
#include <NeoPixelBus.h>
#include <IRremoteESP8266.h>
#include <IRrecv.h>
#include <IRutils.h>
const uint16_t PixelCount = 163; // this example assumes 4 pixels, making it smaller will cause a failure
const uint8_t RemotePin = 14; // make sure to set this to the correct pin, ignored for Esp8266
NeoPixelBus<NeoGrbFeature, NeoEsp8266Dma800KbpsMethod> strip(PixelCount, 2);
IRrecv remote(RemotePin);
@cjdell
cjdell / Cylon.ino
Created July 19, 2017 14:48
Arduino LED Strip Samples
#include <NeoPixelBus.h>
#include <NeoPixelAnimator.h>
const uint16_t PixelCount = 8; // make sure to set this to the number of pixels in your strip
const uint8_t PixelPin = 2; // make sure to set this to the correct pin, ignored for Esp8266
const RgbColor CylonEyeColor(HtmlColor(0x7f0000));
NeoPixelBus<NeoGrbFeature, NeoEsp8266Uart800KbpsMethod> strip(PixelCount, PixelPin);
NeoPixelAnimator animations(2); // only ever need 2 animations
@cjdell
cjdell / exercism.md
Created June 7, 2017 14:30
Instructions for Exercism session