Skip to content

Instantly share code, notes, and snippets.

View enkunkun's full-sized avatar

enkunkun enkunkun

View GitHub Profile
@enkunkun
enkunkun / gist:7884bc9a8206fadb69673f3ec92047e1
Last active February 26, 2020 09:08
avrdude leonardo catalina firmware update
$ ./avrdude -C./avrdude.conf -v -patmega32u4 -c arduino -P /dev/cu.usbmodem14601 -b 19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xfb:m -Uhfuse:w:0xd8:m -Ulfuse:w:0xff:m
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "./avrdude.conf"
User configuration file is "/Users/mikawa-lab/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
@enkunkun
enkunkun / 01-install.sh.example
Last active January 10, 2020 09:47
Mount swapfile when booting from external storage (see: https://discussionsjapan.apple.com/thread/110201665 )
#!/bin/bash
sudo mv com.example.mountswap.plist /Library/LaunchAgents
sudo chown root:wheel /Library/LaunchAgents/com.example.mountswap.plist
sudo launchctl load com.example.mountswap.plist