I hereby claim:
- I am themadinventor on github.
- I am fahlberg (https://keybase.io/fahlberg) on keybase.
- I have a public key ASD8SPCff3NDJjFKJ7tCfBIsZsToFc74_p9Y0CNgu6wCmAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # in /usr/local/bin/blink_suspend | |
| echo "7 blink" > /proc/acpi/ibm/led |
| #!/usr/bin/env python3 | |
| import usb.core | |
| import usb.util | |
| class BusError(Exception): | |
| pass | |
| class USBI(object): |
| /* | |
| * sflash_stub (c) 2015, Fredrik Ahlberg <fredrik@z80.se> | |
| * Released under the GPLv2. | |
| */ | |
| .literal .P_offset, 0xdeadbeef | |
| .literal .P_size, 0xcafebabe | |
| .literal .P_count, 0xabad1dea | |
| .literal .send_packet, 0x40003c80 |
| bin2c() { | |
| output=${2-/dev/stdout} | |
| echo -n "uint8_t data[] = {" > "$output" | |
| hexdump -v -e '"0x" 1/1 "%02X" ", "' $1 >> "$output" | |
| echo "};" >> "$output" | |
| } |
| #!/usr/bin/env python | |
| # | |
| # Quick and dirty BEAM disassembler | |
| # using pybeam | |
| # | |
| # 131005 Fredrik Ahlberg <fredrik@z80.se> | |
| import sys | |
| import pybeam | |
| from pybeam.opcodes import * |