Last active
August 29, 2015 14:04
-
-
Save xlab/e38f8f2b8f33fc0a5545 to your computer and use it in GitHub Desktop.
mk802 notes
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
| $ go test -bench=BenchmarkUint -run=XXX | |
| PASS | |
| BenchmarkUint32Div7 20000000 126 ns/op | |
| BenchmarkUint32Div37 20000000 126 ns/op | |
| BenchmarkUint32Div123 20000000 126 ns/op | |
| BenchmarkUint32Div763 20000000 126 ns/op | |
| BenchmarkUint32Div1247 20000000 126 ns/op | |
| BenchmarkUint32Div9305 20000000 126 ns/op | |
| BenchmarkUint32Div13307 20000000 126 ns/op | |
| BenchmarkUint32Div52513 20000000 126 ns/op | |
| BenchmarkUint32Div60978747 20000000 112 ns/op | |
| BenchmarkUint32Div106956295 20000000 112 ns/op | |
| BenchmarkUint32Mod7 20000000 126 ns/op | |
| BenchmarkUint32Mod37 20000000 126 ns/op | |
| BenchmarkUint32Mod123 20000000 126 ns/op | |
| BenchmarkUint32Mod763 20000000 126 ns/op | |
| BenchmarkUint32Mod1247 20000000 126 ns/op | |
| BenchmarkUint32Mod9305 20000000 126 ns/op | |
| BenchmarkUint32Mod13307 20000000 126 ns/op | |
| BenchmarkUint32Mod52513 20000000 126 ns/op | |
| BenchmarkUint32Mod60978747 20000000 112 ns/op | |
| BenchmarkUint32Mod106956295 20000000 113 ns/op | |
| ok runtime 52.436s | |
| Compare witch RPi: | |
| https://code.google.com/p/go-wiki/wiki/GoArm |
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
| auto lo | |
| iface lo inet loopback | |
| iface eth0 inet dhcp | |
| allow-hotplug wlan0 | |
| auto wlan0 | |
| iface wlan0 inet dhcp | |
| wpa-ssid "Xlab's iPhone" | |
| wpa-psk "wasdwasd" | |
| ---- | |
| Required packages: wireless-tools, wpasuplicant |
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
| http://linux-sunxi.org/BSP | |
| http://linux-sunxi.org/Hwpack | |
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 | |
| tar -cpzf /media/rootfs-`date +%m%d%y`.tar.gz --exclude=/proc/* --exclude=/mnt/* --exclude=/sys/* --exclude=/dev/* --exclude=/lost+found --exclude=/media/* --exclude=/.* / |
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
| # tty0 - getty | |
| # | |
| # This service maintains a getty on tty0 from the point the system is | |
| # started until it is shut down again. | |
| start on stopped rc RUNLEVEL=[2345] and ( | |
| not-container or | |
| container CONTAINER=lxc or | |
| container CONTAINER=lxc-libvirt) | |
| stop on runlevel [!2345] | |
| respawn | |
| exec /sbin/getty -a root -8 115200 ttyS0 vt102 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment