Skip to content

Instantly share code, notes, and snippets.

View brandonschlack's full-sized avatar

Brandon Schlack brandonschlack

View GitHub Profile
@brandonschlack
brandonschlack / repos.bash
Last active January 6, 2022 04:50
Raspberry Pi Snippets
# Azlux's repository (bpytop, broot, docker-ctop)
echo "deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ buster main" | sudo tee /etc/apt/sources.list.d/azlux.list
sudo wget -O /usr/share/keyrings/azlux-archive-keyring.gpg https://azlux.fr/repo.gpg
@brandonschlack
brandonschlack / radpad_build_guide.md
Last active November 24, 2021 04:13
Radpad Build Guide

Radpad Build Guide

  1. Prepare your build
    1. Snap off the top OLED Plate from the Main PCB. Also break off the connecting pieces, and put the OLED Plate to the side. You will get to it later.
    2. Decide on a layout. If you want to build any of the smaller layouts (4x3, 3x4, or 3x3), then now is the time to break off a column and/or row. You can discard the unused column and/or row.
  2. Main PCB
    1. Solder Diodes. Choose which Diodes you want to use, SMD or Through-Hole
      1. Through-Hole Diodes have the long, wire-like legs (called leads).
  3. Bend the legs around the side of your finger, with the orange diode in the middle.
@brandonschlack
brandonschlack / mdflash.sh
Created June 5, 2019 21:43
mdflash command for flashing Massdrop keyboards
# Flash Massdrop firmware
function mdlflash() {
local SOURCE="${PWD}"
local FIRMWARE=""
if [ $# -gt 1 ]; then
FIRMWARE=$(echo "${1}_${2}.bin" | sed "s/\//_/")
else
FIRMWARE="${1}"
fi
cd ${HOME}/.mdloader && ./mdloader_mac --first --download "${SOURCE}/${FIRMWARE}" --restart && cd "${SOURCE}"