Skip to content

Instantly share code, notes, and snippets.

View cstrahan's full-sized avatar

Charles Strahan cstrahan

  • Fullstory
  • Dallas, TX
View GitHub Profile
@cstrahan
cstrahan / packges.txt
Last active March 17, 2024 06:11
NixOS xorg binaries
# This is from NixOS.
# Each line is mapping from xorg.${pkgName} to the binaries that it contains.
bdftopcf: bdftopcf
fontutil: bdftruncate ucs2any
gccmakedep: gccmakedep
iceauth: iceauth
imake: cleanlinks mkhtmlindex imake mergelib xmkmf ccmakedep mkdirhier revpath makeg
libXpm: sxpm cxpm
lndir: lndir
luit: luit
@cstrahan
cstrahan / kimiko.vil
Created August 10, 2023 00:24
My Kimiko key layout
{"version": 1, "uid": 11836529702412328832, "layout": [[["KC_GRAVE", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5"], ["KC_ESCAPE", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T"], ["KC_TAB", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G"], ["KC_LSHIFT", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B"], ["KC_LGUI", "KC_LALT", "KC_LCTRL", "MO(1)", "KC_SPACE", "KC_LBRACKET"], ["KC_GRAVE", "KC_0", "KC_9", "KC_8", "KC_7", "KC_6"], ["KC_BSPACE", "KC_P", "KC_O", "KC_I", "KC_U", "KC_Y"], ["KC_QUOTE", "KC_SCOLON", "KC_L", "KC_K", "KC_J", "KC_H"], ["KC_RSHIFT", "KC_SLASH", "KC_DOT", "KC_COMMA", "KC_M", "KC_N"], ["KC_RGUI", "KC_RALT", "KC_RCTRL", "MO(2)", "KC_ENTER", "KC_RBRACKET"]], [["KC_NO", "KC_F1", "KC_F2", "KC_F3", "KC_F4", "KC_F5"], ["KC_GRAVE", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5"], ["KC_TRNS", "LSFT(KC_1)", "LSFT(KC_2)", "LSFT(KC_3)", "LSFT(KC_4)", "LSFT(KC_5)"], ["KC_TRNS", "KC_EQUAL", "KC_MINUS", "LSFT(KC_EQUAL)", "LSFT(KC_LBRACKET)", "LSFT(KC_RBRACKET)"], ["KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS"], ["KC_F11", "KC_
@cstrahan
cstrahan / README.md
Last active June 10, 2023 01:15
Binary transfer script for minicom.

Configure minicom with minicom -s and enter the “File transfer protocols” section. You can add a section there called “binary”, point it at your file, and specify:

Field Value
Name Binary
Program bin-xfer -o %l
Name Y
U/D U
FullScr Y
@cstrahan
cstrahan / README
Last active February 20, 2023 12:25
Terminfo config for xterm-256color
# Install:
#
# mkdir ~/.terminfo # optional; can also install to $HOME/share/terminfo
# infocmp screen-256color > screen-256color.terminfo.original # backup
# mkdir dry-run
# tic -o dry-run screen-256color.terminfo
# infocmp -A dry-run screen-256color > screen-256color.terminfo.new
# diff -u screen-256color.terminfo.{original,new}
# tic screen-256color.terminfo # overwrites the old terminfo
#
@cstrahan
cstrahan / IxFix.hs
Created November 26, 2018 05:30 — forked from AndrasKovacs/IxFix.hs
Example for recursion schemes for mutually recursive data
{-# LANGUAGE
UndecidableInstances, RankNTypes, TypeOperators, TypeFamilies,
StandaloneDeriving, DataKinds, PolyKinds, DeriveFunctor, DeriveFoldable,
DeriveTraversable, LambdaCase, PatternSynonyms, TemplateHaskell #-}
import Control.Monad
import Control.Applicative
import Data.Singletons.TH
@cstrahan
cstrahan / gist:a0d07cbf633263e510cb2716cdf21790
Created October 11, 2022 11:07
Successful Teensy reset
DEBUG probe_rs::config::registry > Searching registry for chip with name MIMXRT1060
DEBUG probe_rs::config::registry > Exact match for chip name: MIMXRT1060
WARN probe_rs::config::target > Using custom sequence for MIMXRT10xx
DEBUG jaylink > libusb 1.0.25.11696
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: true
DEBUG jaylink > libusb has hotplug support: true
DEBUG jaylink > libusb can detach kernel driver: true
DEBUG jaylink > open_usb: device descriptor: DeviceDescriptor {
bLength: 0x12,
@cstrahan
cstrahan / gist:a9dfcf6c96a611aecbf3daeb97341c41
Created October 10, 2022 01:25
Reset with default debug sequence
DEBUG probe_rs::config::registry > Searching registry for chip with name MIMXRT1060
DEBUG probe_rs::config::registry > Exact match for chip name: MIMXRT1060
WARN probe_rs::config::target > Using custom sequence for MIMXRT10xx
DEBUG jaylink > libusb 1.0.25.11696
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: true
DEBUG jaylink > libusb has hotplug support: true
DEBUG jaylink > libusb can detach kernel driver: true
DEBUG jaylink > open_usb: device descriptor: DeviceDescriptor {
bLength: 0x12,
$ RUST_LOG=debug,probe_rs::probe=info ../target/release/probe-rs-cli download --disable-progressbars --chip MIMXRT1060 --protocol jtag ~/src/hello-teensy/target/thumbv7em-none-eabihf/debug/hello-teensy
DEBUG probe_rs::config::registry > Searching registry for chip with name MIMXRT1060
DEBUG probe_rs::config::registry > Exact match for chip name: MIMXRT1060
WARN probe_rs::config::target > Using custom sequence for MIMXRT10xx
DEBUG jaylink > libusb 1.0.25.11696
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: true
DEBUG jaylink > libusb has hotplug support: true
DEBUG jaylink > libusb can detach kernel driver: true
DEBUG jaylink > open_usb: device descriptor: DeviceDescriptor {
#!/usr/bin/env perl
=head1 NAME generate_fixterms-mappings - create an xml output file suitable for
loading into iTerm as a preset list conforming to the fixterms specification.
=cut
use strict;
use warnings;