Skip to content

Instantly share code, notes, and snippets.

View kraln's full-sized avatar

Jeff Katz kraln

View GitHub Profile
@kraln
kraln / RX-E.md
Last active September 14, 2023 12:16
RX-E Project Notes

RX-E Electrification Project

Purpose and Goal

I bought an RX-8 with the intention of converting it to run on Hydrogen. Conveniently, the hydrogen fueling network was shutdown shorly after purchase. After driving the car around for much longer than I originally intended to with the Renesis engine, it started to lose significant power at 145k km. Rather than exchanging the existing (fun, but unreliable) motor with another (fun, but unreliable) motor, or a different (boring, but more reliable) motor, I'd like to return to the original goal of making the RX-8 zero-emissions.

The goal is an RX-8 that, from the outside and inside, will be nearly indistinguishable from stock. All safety and comfort features should still work, and the car shouldn't gain too much additional weight. The original structure should stay as intact as possible, and the handling and dynamics should be as close to as-delivered. But, the whole thing will be electric; none of the original drive tr

@kraln
kraln / main.c
Created January 3, 2020 17:41
Voxel Flying SDL Thing
// based very loosely on https://github.com/s-macke/VoxelSpace
#include <SDL.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
#include <SDL_image.h>
static uint16_t S_WIDTH = 800;
@kraln
kraln / opensecret.md
Created July 8, 2018 22:02
OpenSecret

OpenSecret concept paper

background

I am concerned about a lot of things, but one thing that I could help is the security of connected (aka IoT) devices. Many devices are brought into this world without the ability to do secure firmware updates, without the ability to verify the authenticity of its command and control server, and without the ability to encrypt its communications in any way. There are some devices which can enable these functions, but they are often available only under an NDA, and are not well documented with public examples. I firmly believe that most engineers are 'lazy', in so far as they are on tight schedules and need to deliver business value, and they like to build on existing work (examples) rather than do novel research. Especially with crypto and security, this has disasterous effects.

Recently, Microchip has released the L11 series microcontroller, which is one of the first available ARM Cortex-M23 cores, with full security (includin

@kraln
kraln / wannacry.sh
Last active May 12, 2017 22:04
See how much wannacry has made
#!/bin/sh
curl -s "https://blockchain.info/q/getreceivedbyaddress/\
13AM4VW2dhxYgXeQepoHkHSQuy6NgaEb94|\
12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw|\
115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn" | python -c 'import sys; r = sys.stdin.readline(); amt = (float(r) / 100000000); print "wanna cry has made %f btc, that is %f usd and %f euro" % (amt, amt * 1701.53, amt * 1562.41,)'
var radio = require('./')()
var shortTimeFT = require("stft")
var BAUD_RATE = 1
var TIME_PER_BIT = 1000 / BAUD_RATE
var SYNC_PERIOD = 5000
radio.setFrequency(2.49e9)
radio.setSampleRate(320e3)
radio.setBandwidth(640e3)
@kraln
kraln / keybase.md
Last active July 5, 2016 16:15
Keybase Claim

Keybase proof

I hereby claim:

  • I am kraln on github.
  • I am kraln (https://keybase.io/kraln) on keybase.
  • I have a public key ASA2w72_-QqiAlnoxpg0dWn9Q9tQl1-a5dg5nvxTIMQcoQo

To claim this, I am signing this object: