Skip to content

Instantly share code, notes, and snippets.

@jake-b
jake-b / usb_hid_gadget.sh
Created May 7, 2020 14:12
Emulate both a keyboard and mouse using the USB
#!/bin/bash
# References:
# https://www.isticktoit.net/?p=1383
# http://irq5.io/2016/12/22/raspberry-pi-zero-as-multiple-usb-gadgets/
# After running this, use hid_gadget_test.c <https://github.com/aagallag/hid_gadget_test/blob/master/hid_gadget_test.c>
cd /sys/kernel/config/usb_gadget/
@jake-b
jake-b / keybase.md
Created September 9, 2019 18:46
keybase.md

Keybase proof

I hereby claim:

  • I am jake-b on github.
  • I am allaboutjake (https://keybase.io/allaboutjake) on keybase.
  • I have a public key ASA5uMX9msiXocNnkn8OHY4Uba64W5923p1O4UOGFTEWCAo

To claim this, I am signing this object:

@jake-b
jake-b / calyx_hotspot.txt
Created May 29, 2019 10:45
Instructions on transferring Calyx Hotspot to another device
To swap the device you need 3 things:
1. A Sprint device with a "Clean ESN" - "Clean ESN" means that it wasn't lost/stolen and also that it is not currently locked to another account or contract.
2. A compatible SIM card - A new Sprint device should come with a SIM card already installed. The SIM number is paired to the phone in Sprint's database. Also, Sprint has different SIMs that are only compatible with specific devices. You can't just swap the SIM from the original hotspot. If you buy used, and it doesn't have a SIM card. Sprint makes it difficult to find out which one you need.
3. The phone number of the existing Calyx hotspot. - One way to get this is to create an account on MySprint.sprint.com using the MEID of the original hotspot. This account will show you the phone number, but I don't think it will allow you to make any changes because you are not the billing contact/owner of the account.
With this information in hand, call Sprint Business Care at 800-927-2199 a
diff --git a/Emulator/Sound/TCoreAudioSoundManager.cp b/Emulator/Sound/TCoreAudioSoundManager.cp
index 9211d4b..193531d 100644
--- a/Emulator/Sound/TCoreAudioSoundManager.cp
+++ b/Emulator/Sound/TCoreAudioSoundManager.cp
@@ -43,6 +43,8 @@
// Einstein.
#include "Emulator/Log/TLog.h"
+#define MIN(a,b) ((a) < (b) ? (a) : (b))
+
@jake-b
jake-b / logplatform.py
Created April 7, 2016 17:51
A crude platform temperature logger for printers running Makerbot s3g based firmware
# Platform temp logger
# DO NOT RUN THIS PROGRAM WHILE PRINTING-- THIS IS DEISGNED FOR HBP TEMP TESTING
# USING THE PREHEAT FUNCTION AND NOT DESIGNED TO BE RUN WHILE PRINTING!
#################################################################################
# Copyright (c) 2013, jake (at) allaboutjake (dot) com
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@jake-b
jake-b / logtool0.py
Last active April 7, 2016 17:47
A crude temperature logger for printers running Makerbot s3g based firmware
# Tool 0 temperature logger
# DO NOT RUN THIS PROGRAM WHILE PRINTING-- THIS IS DEISGNED FOR TEMP TESTING
# USING THE PREHEAT FUNCTION AND NOT DESIGNED TO BE RUN WHILE PRINTING!
#################################################################################
# Copyright (c) 2013, jake (at) allaboutjake (dot) com
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@jake-b
jake-b / main.m
Created December 11, 2014 22:15 — forked from stuartcarnie/main.m
- (IBAction)runTest:(id)sender {
// 32-bit assembly. Set your architecture to armv7 (not arm64)
uint32_t code[] = {
0xe2800001, // add r0, r0, #1
0xe12fff1e, // bx lr
};
uint32_t *p;