as title
https://github.com/golang/crypto/tree/master/ssh/terminal looks great
please run it with
package main
import (
"fmt"
"golang.org/x/crypto/ssh/terminal"
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
| 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 | |
| } |
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
| { | |
| "jsonrpc": "2.0", | |
| "id": "f3363ed525852bea94200c5eeae", | |
| "result": { | |
| "deviceId": "e8:de:d6:00:11:22", | |
| "mapping": { | |
| "1": "4", | |
| "2": "3", | |
| "3": "2", | |
| "4": "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
| { | |
| "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", |
- 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
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
| 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) |
# 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