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" | |
| "runtime" | |
| ) | |
| func main() { | |
| foo() |
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
| [00;;32m++[00;;0m checking tool chain sanity | |
| Toolchain: | |
| sh /opt/via/bin/sh | |
| make /usr/bin/make | |
| cc /usr/lib/ccache/bin/cc | |
| wget /usr/bin/wget | |
| tar /bin/tar | |
| bogus command "bogus" not found in $PATH | |
| superlongbogustoolthatgoesonforever command "superlongbogustoolthatgoesonforever" not found in $PATH |
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 ( | |
| "io/ioutil" | |
| ) | |
| func init() { | |
| var ( | |
| name = "glibc" |
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
| func ExecIn(path string, format string, a ...interface{}) { | |
| fork := &Fork{path} | |
| fork.Exec(format, a...) | |
| } |
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
| exec 3<> /dev/tcp/aur3.org/1819 | |
| cat <&3 | |
| exec 3<&- | |
| echo |
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
| func cp(src string, dest string) os.Error { | |
| fsrc, err := os.Open(src, os.O_RDONLY, 0644) | |
| si, err := os.Stat(fsrc.Name()) | |
| if err != nil { | |
| return err | |
| } | |
| defer fsrc.Close() | |
| if err != nil { | |
| return err | |
| } |
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
| -r="": rewrite rule (e.g., 'α[β:len(α)] -> α[β:]') |
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
| // Decompress bzip2 or gzip file to destination directory | |
| func untar(file string, dest string) (err os.Error) { | |
| f, err := os.Open(file, os.O_RDONLY, RMASK) | |
| if err != nil { | |
| return err | |
| } | |
| defer f.Close() | |
| var cr io.Reader | |
| switch path.Ext(file) { | |
| case ".bz2": |
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
| { | |
| "Name": "linux-headers", | |
| "Url": "http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.tar.bz2", | |
| "Version": "2.6.38", | |
| "Desc": "Linux Kernel API", | |
| "PreBuild": "", | |
| "Build": [ | |
| "make mrproper", | |
| "make headers_check" | |
| ], |
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 | |
| // run this file with `go run clientDoGzip.go, and then file tmp.out to verify body is gzipped | |
| import "compress/gzip" | |
| import "net/http" | |
| import "fmt" | |
| import "io" | |
| import "log" | |
| import "os" |