Skip to content

Instantly share code, notes, and snippets.

@JamesHagerman
JamesHagerman / Quimat 3.5in TFT on Kali 2019.md
Last active May 11, 2020 03:21
[Work in Progress!] 3.5 Inch TFT Touch Screen, Quimat 320x480 Resolution LCD
@JamesHagerman
JamesHagerman / Autodesk-Eagle-without-three-button-mouse.md
Created June 14, 2019 18:51
Autodesk Eagle laptop support command I always need and always forget

Using Autodesk Eagle without a three button mouse

By default, panning the view in Eagle is painful on computers with touchpads, trackpads, thinkpad nubs, or whatever their called on Apple laptops.

The following command can enable the Ctrl (or Cmd on an Apple) key as an alternative way of panning the view. Just hold the key and move the mouse around (without clicking any mouse button).

This is very useful, difficult to remember, difficult to Google, and difficult to save in a "dotfile" configuration file. At least it sticks between runs of Eagle...

SET Interface.UseCtrlForPanning 1
@JamesHagerman
JamesHagerman / stslte-notes.md
Last active March 17, 2024 20:37
My notes about running srsLTE

srsLTE notes

These are notes I've taken while rying to get srslte up and running. This is messy, sorry...

Working solution - LimeSDR + SoapySDR + srsLTE

Dependencies:

sudo apt install tree vim git g++ make cmake pkg-config libpython-dev python-numpy swig libi2c-dev libusb-1.0-0-dev libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev gnuradio

Keybase proof

I hereby claim:

  • I am jameshagerman on github.
  • I am jhagerman (https://keybase.io/jhagerman) on keybase.
  • I have a public key ASARFYz-Cj8HbLghrTj45FCqIG4AkLCNW1REPG_1WAhXmwo

To claim this, I am signing this object:

@JamesHagerman
JamesHagerman / usb_to_uart.ino
Created September 21, 2018 17:32 — forked from monkbroc/usb_to_uart.ino
Particle Photon USB to UART passthrough
/* Pass through all data from USB serial to UART serial (TX/RX pins)
*/
SYSTEM_THREAD(ENABLED);
SYSTEM_MODE(MANUAL);
void setup() {
Serial1.begin(9600);
Serial.begin();
}

atreas layout notes

I am trying to figure out how to layout this friggin atreus keyboard in a way that is more in line with my brain.

That means trying to figure out how to use it for most of my work instead of just being a distraction.

So. I know I just need to type on it more to learn it better because of the ortho layout but it's also a drag because I can not figure out the right way to handle all of the stupid things one normally does with a keyboard.

My other keyboard has plenty of extra function keys specifically so it is easier for me to access all the silly extra functions. But on that desk, the list is rather short. It's mostly just about the arrow keys, page up/down, and having enough space for the silly backspace and whatever keys.

@JamesHagerman
JamesHagerman / RetroPiePy_note.md
Last active July 18, 2018 09:16
Adding a python script to the RetoPie EmulationStation GUI
@JamesHagerman
JamesHagerman / colour_converter.py
Created June 13, 2018 08:51 — forked from ajfisher/colour_converter.py
Convert an 888 RGB value to 565 hex
# Author: Andrew Fisher
# Version: 0.1
# Date: 30/05/2012
# Licence: BSD
# This python converts an rgb value expressed in 8 bit values (eg 255, 128, 0) and returns a hex value that
# has been converted to 565 format. This was highly useful when I was playing with some Arduino
# stuff requiring 16 bit LCD designs and couldn't remember the hex layout.
def rgb_hex565(red, green, blue):
@JamesHagerman
JamesHagerman / gdb_debug_notes.md
Last active June 24, 2020 22:38
My notes on debugging c/c++ binaries using gdb... the normal way

GDB and GEF notes

I should be using radare2 instead... but I'm on ARM and don't really want to install radare2

TODO: Install radare2! :D

Args and launching

Just run: