This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/evn python3.5 | |
| import sys | |
| import PIL | |
| from PIL import Image | |
| import netifaces | |
| import struct | |
| import pprint | |
| import datetime | |
| from urllib.request import urlopen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| #device=$2 | |
| device=/dev/cuaU0 | |
| case "$1" in | |
| "off") | |
| echo -n "\x00" > $device | |
| ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <DigiCDC.h> | |
| #include <Adafruit_NeoPixel.h> | |
| #define LEDCOUNT 9 | |
| #define STRIP_PIN 0 | |
| #define NUMPROGS 4 | |
| byte rgb[3]; | |
| byte pixen[LEDCOUNT]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import usocket as socket | |
| #import socket | |
| def sendudp(host, port): | |
| address = ("127.0.0.1", 6969) | |
| data = b'hello udp' | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| UPDATEFILE=SD100-openwrt.tar.gz | |
| echo -n "** Switching mode..." | |
| curl http://10.168.168.1:8080/goform/Setcardworkmode?workmode=0 | |
| echo | |
| echo "** Uploading firmware" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ===> usr.sbin/uathload (all) [16/1890] | |
| cc1: warnings being treated as errors | |
| /usr/home/tom/code/freebsd/usr.sbin/uathload/uathload.c: In function 'getdevname': | |
| /usr/home/tom/code/freebsd/usr.sbin/uathload/uathload.c:86: warning: declaration of 'devname' shadows a global declaration | |
| /home/tom/code/freebsd/../obj/mips_ap//mips.mips/usr/home/tom/code/freebsd/tmp/usr/include/stdlib.h:281: warning: shadowed declaration is here | |
| /usr/home/tom/code/freebsd/usr.sbin/uathload/uathload.c: In function 'main': | |
| /usr/home/tom/code/freebsd/usr.sbin/uathload/uathload.c:124: warning: declaration of 'devname' shadows a global declaration | |
| /home/tom/code/freebsd/../obj/mips_ap//mips.mips/usr/home/tom/code/freebsd/tmp/usr/include/stdlib.h:281: warning: shadowed declaration is here | |
| --- uathload.o --- | |
| *** [uathload.o] Error code 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ap135> reset | |
| U-Boot 1.1.4 (May 14 2015 - 19:51:26) | |
| ap135 - Scorpion 1.0DRAM: | |
| sri | |
| Scorpion 1.0 | |
| ath_ddr_initial_config(178): (16bit) ddr2 init | |
| tap = 0x00000003 | |
| Tap (low, high) = (0x0, 0x1c) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| U-Boot 1.1.4 (May 14 2015 - 19:51:26) | |
| ap135 - Scorpion 1.0DRAM: | |
| sri | |
| Scorpion 1.0 | |
| ath_ddr_initial_config(178): (16bit) ddr2 init | |
| tap = 0x00000003 | |
| Tap (low, high) = (0x0, 0x1d) | |
| Tap values = (0xe, 0xe, 0xe, 0xe) | |
| 64 MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| U-Boot 1.1.4 (May 14 2015 - 19:51:26) | |
| ap135 - Scorpion 1.0DRAM: | |
| sri | |
| Scorpion 1.0 | |
| ath_ddr_initial_config(178): (16bit) ddr2 init | |
| tap = 0x00000003 | |
| Tap (low, high) = (0x0, 0x1c) | |
| Tap values = (0xe, 0xe, 0xe, 0xe) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- buildkernel --- | |
| --- buildkernel --- | |
| -------------------------------------------------------------- | |
| >>> Kernel build for RPI-B started on Tue Jan 19 16:23:43 UTC 2016 | |
| -------------------------------------------------------------- | |
| ===> RPI-B | |
| mkdir -p /usr/home/tom/code/freebsd/pipwm/crochet/work/obj/arm.armv6/usr/home/tom/code/freebsd/pipwm/src/sys | |
| -------------------------------------------------------------- | |
| >>> stage 2.3: build tools | |
| -------------------------------------------------------------- |