I hereby claim:
- I am bapril on github.
- I am bapril (https://keybase.io/bapril) on keybase.
- I have a public key ASD3XmhrjSlzPvF4z7lZJZhJKE0oq9rYfByGGliko-hF6Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#Pair of command-sets to resurrect an Arduino Uno | |
#Get the hex image. | |
cd /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin | |
./avrdude -p m16u2 -C ../etc/avrdude.conf -c usbtiny -V | |
./avrdude -p m16u2 -C ../etc/avrdude.conf -c usbtiny -U erase | |
./avrdude -p m16u2 -C ../etc/avrdude.conf -P usb -c usbtiny -U flash:w:../../../arduino/avr/firmwares/atmegaxxu2/UNO-dfu_and_usbserial_combined.hex | |
./avrdude -p m16u2 -C ../etc/avrdude.conf -P usb -c usbtiny -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m |
#Command to reflash the 16u2 on an Arduino Mega: using an usbtiny programmer | |
#!/bin/bash | |
#Get to the tools | |
cd /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin | |
#Push the image | |
./avrdude -c usbtiny -p m16u2 -C ../etc/avrdude.conf -U flash:w:/Users/bapril/Documents/workspace/Arduino/Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex.txt -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m | |
#Command to reflash the m2560 on an Arduino Mega: using an usbtiny programmer |
Some of this is mine, other elements came from: http://petr.io/2015/11/09/read-only-raspberry-pi-with-jessie/ | |
- Install raspbian | |
- Boot-login | |
- apt-get update | |
- apt-get dist-upgrae | |
- apt-get remove --auto-remove --purge 'libx11-.*' | |
- apt-get remove --auto-remove --purge 'libav.*' | |
- apt-get remove --auto-remove --purge 'build-essential' | |
- apt-get remove --auto-remove --purge 'libreoffice-common' |
#!/usr/bin/perl | |
print "digraph g {\n"; | |
open(PKGS, "dpkg -l |egrep \"^[a-zA-Z0-9]{2} \" | awk {'print \$2'} |"); | |
while(<PKGS>){ | |
my $pkg = $_; | |
chomp($pkg); | |
print "\"$pkg\" [shape=square];\n"; |