Skip to content

Instantly share code, notes, and snippets.

View shortword's full-sized avatar

Mike Bergeron shortword

View GitHub Profile
@shortword
shortword / rm2_github_ssh_keys.md
Last active July 28, 2023 11:54
reMarkable2 - Send ssh keys from github to device

GitHub Public Keys to reMarkable2

This code pulls the public keys from your GitHub account, and uploads them as authorized_keys to your reMarkable2

Process

  1. Personally, I think its a bit easier to do this over USB rather than WiFi. When connected over USB it will emulate an ethernet device.
  2. Enable SSH on your reMarkable. As of this writing, you can do this be navigating: Menu -> Settings -> Help -> Copyrights and Licenses
    • On this page (General Information), you'll see your IP address(es) and root password. You'll need these shortly.
  3. Below, you'll need to set RM_IP_ADDR with one of the IP addresses here.
@shortword
shortword / rtlsdr_e2e.sh
Created April 5, 2021 21:49
rtlsdr end-to-end script
#!/usr/bin/env bash
sudo apt update
sudo apt install -y build-essential cmake git libusb-1.0-0-dev
mkdir -p $HOME/local/src
cd $HOME/local/src
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build
@shortword
shortword / keybase.md
Created October 10, 2019 20:43
keybase.md

Keybase proof

I hereby claim:

  • I am shortword on github.
  • I am shortword (https://keybase.io/shortword) on keybase.
  • I have a public key ASC3piFwMWGQpl240iI6MITWQjeNvV0keBFYwZ7pnnv76go

To claim this, I am signing this object:

@shortword
shortword / cubic_sdr_apt.sh
Last active March 1, 2019 22:16
CubicSDR Ubuntu 18.04 dependencies
sudo apt-get install -y git build-essential automake cmake libpulse-dev libgtk-3-dev freeglut3 freeglut3-dev python3-dev swig3.0 libhamlib-dev
@shortword
shortword / 99-makerselect-3dprinter.rules
Created February 8, 2019 02:11
udev rules Maker Select 3D v2
SUBSYSTEM=="tty", DRIVERS=="usb", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", ATTRS{serial}=="AH068NME", SYMLINK+="maker3d"
@shortword
shortword / udevadm_info_makerselect
Created February 8, 2019 02:03
udevadm info for Maker Select 3D v2
looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3/tty/ttyUSB3':
KERNEL=="ttyUSB3"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3':
KERNELS=="ttyUSB3"
SUBSYSTEMS=="usb-serial"
DRIVERS=="ftdi_sio"
ATTRS{latency_timer}=="16"
@shortword
shortword / udevadm_monitor_makerselect
Created February 8, 2019 02:00
udevadm monitor for Monoprice Maker Select 3D v2
KERNEL[336840.110293] add /devices/pci0000:00/0000:00:14.0/usb1/1-8 (usb)
KERNEL[336840.113238] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0 (usb)
KERNEL[336840.113306] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3 (usb-serial)
KERNEL[336840.113701] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3/tty/ttyUSB3 (tty)
KERNEL[336840.113770] bind /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3 (usb-serial)
KERNEL[336840.113851] bind /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0 (usb)
KERNEL[336840.113943] bind /devices/pci0000:00/0000:00:14.0/usb1/1-8 (usb)
UDEV [336840.146597] add /devices/pci0000:00/0000:00:14.0/usb1/1-8 (usb)
UDEV [336840.153069] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0 (usb)
UDEV [336840.157093] add /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/ttyUSB3 (usb-serial)
@shortword
shortword / 99-yaesu-ft991a.rules
Created February 8, 2019 01:45
udev yaesu ft991a rules
#FT991a UART Interfaces
SUBSYSTEM=="tty", DRIVERS=="cp210x", ATTRS{interface}=="Enhanced*", SYMLINK+="yaesu991e"
SUBSYSTEM=="tty", DRIVERS=="cp210x", ATTRS{interface}=="Standard*", SYMLINK+="yaesu991s"
@shortword
shortword / udevadm_info_yaesu
Created February 8, 2019 01:25
udevadm info attribute walk yaesu ttyUSB
looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3.1/1-1.4.3.1:1.0/ttyUSB0/tty/ttyUSB0':
KERNEL=="ttyUSB0"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3.1/1-1.4.3.1:1.0/ttyUSB0':
KERNELS=="ttyUSB0"
SUBSYSTEMS=="usb-serial"
DRIVERS=="cp210x"
ATTRS{port_number}=="0"
@shortword
shortword / udevadm_monitor
Created February 8, 2019 01:14
Yaesu FT991a udevadm monitor output
KERNEL[334072.416640] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3 (usb)
KERNEL[334072.417238] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0 (usb)
KERNEL[334072.418795] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0 (usb)
KERNEL[334072.418902] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3 (usb)
UDEV [334072.431794] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3 (usb)
UDEV [334072.437466] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0 (usb)
UDEV [334072.440708] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0 (usb)
UDEV [334072.443294] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3 (usb)
KERNEL[334072.814377] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3.1 (usb)
KERNEL[334072.815475] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3.1/1-1.4.3.1:1.0 (usb)