Skip to content

Instantly share code, notes, and snippets.

@tiborvass
tiborvass / gist:956f2722deb2fccb535b
Last active August 29, 2015 14:01
Can't reproduce docker#5430
root@vagrant-ubuntu-trusty-64:~/tests/5430# docker version
Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 867b2a9
Server version: 0.9.1
Git commit (server): 867b2a9
Go version (server): go1.2.1
Last stable version: 0.11.1, please update docker
root@vagrant-ubuntu-trusty-64:~/tests/5430# docker info
```bash
curl toto.com
```
@tiborvass
tiborvass / gist:42dd1d65ad2024c91f1e
Last active August 29, 2015 14:02
Go 1.2.2 -> 1.3 os/exec diff
--- ./go1.2.2/src/pkg/os/exec/exec.go 2014-05-05 14:00:49.000000000 -0400
+++ ./go1.3/src/pkg/os/exec/exec.go 2014-06-18 20:43:40.000000000 -0400
@@ -12,7 +12,10 @@
"errors"
"io"
"os"
+ "path/filepath"
+ "runtime"
"strconv"
+ "strings"
vagrant@ubuntu-14:~$ ./check-config.sh
warning: /proc/config.gz does not exist, searching other paths for kernel config...
info: reading kernel config from /boot/config-3.15.3-031503-generic ...
Generally Necessary:
- cgroup hierarchy: nonexistent??
(see https://github.com/tianon/cgroupfs-mount)
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
[vagrant@centos ~]$ ./check-config.sh
warning: /proc/config.gz does not exist, searching other paths for kernel config...
info: reading kernel config from /boot/config-2.6.32-431.20.3.el6.x86_64 ...
Generally Necessary:
- cgroup hierarchy: nonexistent??
(see https://github.com/tianon/cgroupfs-mount)
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)
Mozilla/5.0 (compatible; ABrowse 0.4; Syllable)
Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser 1.98.744; .NET CLR 3.5.30729)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Maxthon; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; GTB5;
Mozilla/4.0 (compatible; Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; Acoo Browser; .NET CLR 1.1.4322; .NET CLR 2.0.50727); Windows NT 5.1; Trident/4.0; Maxthon; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser; GTB5; Mozi
@tiborvass
tiborvass / foo_test.go
Last active August 29, 2015 14:07
Stupid github doesn't let me do slashes in filenames, so os-mock.go is os/mock.go and os-stdlib.go is os/stdlib.go.
// All you need to do is: `go test -tags mock .` to have the mocked version.
package main
import (
"fmt"
"testing"
"github.com/tiborvass/foo/os"
)
@tiborvass
tiborvass / rpcfunc.go
Last active August 29, 2015 14:09
RPC Functions with Libchan
package rpcfunc
import (
"fmt"
"reflect"
"github.com/tiborvass/libchan" // needs some fixes to be merged
)
+ go test -test.timeout=30m github.com/docker/docker/integration-cli
[PASSED]: container REST API - check GET json/all=1
[PASSED]: container REST API - check GET containers/export
[PASSED]: container REST API - check GET containers/changes
[PASSED]: container REST API - check volume binds on start
[PASSED]: container REST API - check VolumesFrom on start
[PASSED]: container REST API - check VolumesFrom has priority
[PASSED]: exec create API - returns error when missing Cmd
[PASSED]: container json - check keys in container json response
[PASSED]: container resize - when started
#!/usr/bin/python
def main(args):
print(args)