Skip to content

Instantly share code, notes, and snippets.

View ipatch's full-sized avatar
:octocat:
🦾

Chris ipatch

:octocat:
🦾
View GitHub Profile
@ipatch
ipatch / output.txt
Created May 13, 2020 23:12
flashrom
Probing for Unknown SFDP-capable chip, 0 kB: No SFDP signature found.
Probing for AMIC unknown AMIC SPI chip, 0 kB: RDID byte 1 parity violation. probe_spi_rdid_generic: id1 0x7fff, id2 0xffff
Probing for Atmel unknown Atmel SPI chip, 0 kB: RDID byte 1 parity violation. probe_spi_rdid_generic: id1 0x7fff, id2 0xff
Probing for Eon unknown Eon SPI chip, 0 kB: RDID byte 1 parity violation. probe_spi_rdid_generic: id1 0x7fff, id2 0xff
Probing for Macronix unknown Macronix SPI chip, 0 kB: RDID byte 1 parity violation. probe_spi_rdid_generic: id1 0x7fff, id2 0xff
Probing for PMC unknown PMC SPI chip, 0 kB: RDID byte 1 parity violation. probe_spi_rdid_generic: id1 0x7fff, id2 0xff
Probing for SST unknown SST SPI chip, 0 kB: RDID byte 1 parity violation. probe_spi_rdid_generic: id1 0x7fff, id2 0xff
Probing for ST unknown ST SPI chip, 0 kB: RDID byte 1 parity violation. probe_spi_rdid_generic: id1 0x7fff, id2 0xff
Probing for Sanyo unknown Sanyo SPI chip, 0 kB: RDID byte 1 parity violation. probe_spi_rdid_generic: id1
@ipatch
ipatch / .gitignore
Last active September 29, 2025 19:39
freecad under-constrained
.readme
@ipatch
ipatch / flashrom.txt
Created January 24, 2020 17:44
flashrom dump W25Q64.V
─λ time flashrom -VV -p buspirate_spi:dev=/dev/tty.usbserial-A700dzDq -c W25Q64.V -r dump04.bin; say "dump complete"; should-You | 0 < 11:40:31
flashrom v1.0.1 on Darwin 17.7.0 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
flashrom was built with LLVM Clang 10.0.0 (clang-1000.11.45.5), little endian
Command line (7 args): flashrom -VV -p buspirate_spi:dev=/dev/tty.usbserial-A700dzDq -c W25Q64.V -r dump04.bin
Calibrating delay loop... OS timer resolution is 1 usecs, 2203M loops per second, delay more than 10% too short (got 81% of expected delay), recalculating... 2432M loops per second, delay more than 10% too short (got 89% of expected delay), recalculating... 2410M loops per second, delay more than 10% too short (got 89% of expected delay), recalculating... 2417M loops per second, delay more than 10% too short (got 89% of expected delay), recalculating... 2417M loops per second, delay loop is unreliable, t
@ipatch
ipatch / see attachments
Created January 17, 2020 19:50
octoprint no mesh data
see attachments
@ipatch
ipatch / tmux.conf
Created January 10, 2020 21:16
my tmux confusion 🤨
bind-key -n F12 display "F12 pressed" # no prefix key required
bind -n F12 display "F12 pressed" # requires prefix key before displaying message in status bar
# if i use `bind-key` instead of `bind` i can press `fn + F12` and see the message displayed in the status bar
# but if i use `bind` i have to press my `prefix` key first before pressing `fn + F12` to see the message displayed
# ...in the status bar even if i have the `-n` option set.
# i thought `bind` was alias to `bind-key` am i mistaken about this?
# os = macOS 10.13.6
@ipatch
ipatch / b
Created January 10, 2020 00:04
b
b
@ipatch
ipatch / 01-stalled-output.md
Last active December 31, 2019 18:27
flashrom output
flashrom -p buspirate_spi:dev=/dev/tty.usbserial-A700dzDq -VVV      
Initializing buspirate_spi programmer
buspirate_sendrecv: write 1, read 0 Sending 0x00
buspirate_sendrecv: write 1, read 0 Sending 0x00
buspirate_sendrecv: write 1, read 0 Sending 0x00
buspirate_sendrecv: write 1, read 0 Sending 0x00
@ipatch
ipatch / question.md
Created December 11, 2019 17:37
rsync question

rsync question

use case

I'd like to backup a directory of large files to a locally attached external USB disk, and not remove any of the files that have been already been backed up (using rsync) to the destination disk. However, if the path to the file on the source disk has changed, I'd like to update the path on the destination disk (if possible).

Requiremnts

  • keep all files on destination, ie. do not remove ANY files from destination
  • however if a file moves on the source, update the path on the destination
@ipatch
ipatch / gist:179a587a4286419183a2125f25e1aa64
Created November 29, 2019 17:14
alacritty italic and bold
see comment
@ipatch
ipatch / console.txt
Last active November 26, 2019 17:25
troubleshooting ffmpeg
ffmpeg -f avfoundation -list_devices true -i ""
# output
[AVFoundation input device @ 0x7fbd86d03600] AVFoundation video devices:
[AVFoundation input device @ 0x7fbd86d03600] [0] FaceTime HD Camera
[AVFoundation input device @ 0x7fbd86d03600] [1] Capture screen 0
[AVFoundation input device @ 0x7fbd86d03600] AVFoundation audio devices:
[AVFoundation input device @ 0x7fbd86d03600] [0] Background Music
[AVFoundation input device @ 0x7fbd86d03600] [1] Background Music (UI Sounds)