Skip to content

Instantly share code, notes, and snippets.

as title

@changtimwu
changtimwu / gocliex.md
Last active March 4, 2016 02:50
go multisession CLI scratch
gitlab.example-domain.com {
proxy / localhost:10080 {
proxy_header Host {host}
proxy_header X-Real-IP {remote}
proxy_header X-Forwarded-Proto {scheme}
proxy_header X-Forwarded-Ssl on
}
log access-gitlab.log
}
@changtimwu
changtimwu / validresult.json
Created November 17, 2015 10:44
correct format
{
"jsonrpc": "2.0",
"id": "f3363ed525852bea94200c5eeae",
"result": {
"deviceId": "e8:de:d6:00:11:22",
"mapping": {
"1": "4",
"2": "3",
"3": "2",
"4": "1"
{
"jsonrpc":"2.0",
"id":"1804a065-5f41-44a8-889b-2f8689955ecc",
"result":{
"deviceId":"D0:FF:50:EF:7B:6B",
"macAddress":"D0:FF:50:EF:7B:6B",
"firmware":"01","model":"matrix",
"serialNum":"serialNum",
"serviceTag":"serviceTag",
-
key: 'system'
title: 'System'
url: '/system'
children:
-
key: 'info'
title: 'Information'
url: '/sysconf'
templateUrl: 'views/sysconf.html'
@changtimwu
changtimwu / angular_es6_howto.md
Last active August 29, 2015 14:23
angular es6
  • use a recent version of nodejs ex. v0.12.2
  • install necessary modules
npm install -g npm
npm install -g coffee-script 
npm install -g jade babel jade-babel
npm install -g gulp
npm install -g yo jspm
npm install -g generator-systemjs 
@changtimwu
changtimwu / getsysinfo.go
Created May 29, 2015 08:04
GO get sysinfo
package main
import "fmt"
import "golang.org/x/sys/unix"
func main() {
var si unix.Sysinfo_t
unix.Sysinfo( &si)
fmt.Println("Hello, playground", si)
@changtimwu
changtimwu / arx3303_renew.md
Last active February 27, 2016 07:53
ARX-3303 renew procedure

Board 1.0

from top to bottom

*Serial

  • Debug
  • A
  • B
  • I For digging data, you should try Debug port first.
@changtimwu
changtimwu / update_bootloader.md
Last active August 29, 2015 14:19
how to update uboot in poncat
# show original value
Marvell>>print linux_parts
linux_parts=mtdparts=nand_mtd:0xc0000(uboot)ro,0x40000(env),0x400000(kernel),0x7600000(writable),0x500000(rescue)

# set linux_parts to new value
Marvell>>set linux_parts "mtdparts=nand_mtd:0xc0000(uboot),0x40000(env),0x400000(kernel),0x7600000(writable),0x500000(rescue)"

# check the new value
Marvell>>print linux_parts