This file contains 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 | |
### cleanup | |
oc cluster down | |
rm -rf ./secrets | |
### end of cleanup | |
oc cluster up --version=latest --skip-registry-check=true | |
oc login -u system:admin | |
oc project default |
This file contains 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
### cleanup | |
oc cluster down | |
rm -rf ./secrets | |
### end of cleanup | |
oc cluster up --version=latest --skip-registry-check=true | |
oc login -u system:admin | |
oc project default | |
oc get svc/docker-registry |
This file contains 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
$ date | nc -l 0.0.0.0 8080 | |
GET / HTTP/1.1 | |
Host: 127.0.0.1:8080 | |
User-Agent: curl/7.51.0 | |
Accept: */* |
This file contains 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
192.168.99.1 - - [26/Apr/2017:23:46:11] "GET / HTTP/1.1" 200 39 "-" "curl/7.51.0" | |
2017-04-26 23:46:11,001 INFO: 192.168.99.1 - - [26/Apr/2017:23:46:11] "GET / HTTP/1.1" 200 39 "-" "curl/7.51.0" | |
192.168.99.1 - - [26/Apr/2017:23:46:15] "GET /v2/ HTTP/1.1" 404 233 "-" "curl/7.51.0" | |
2017-04-26 23:46:15,315 INFO: 192.168.99.1 - - [26/Apr/2017:23:46:15] "GET /v2/ HTTP/1.1" 404 233 "-" "curl/7.51.0" | |
192.168.99.100 - - [26/Apr/2017:23:47:57] "GET /v2/ HTTP/1.1" 404 233 "-" "docker/1.13.1 go/go1.7.5 git-commit/092cba3 kernel/4.4.47-boot2docker os/linux arch/amd64 UpstreamClient(Docker-Client/1.11.2 \(darwin\))" | |
2017-04-26 23:47:57,130 INFO: 192.168.99.100 - - [26/Apr/2017:23:47:57] "GET /v2/ HTTP/1.1" 404 233 "-" "docker/1.13.1 go/go1.7.5 git-commit/092cba3 kernel/4.4.47-boot2docker os/linux arch/amd64 UpstreamClient(Docker-Client/1.11.2 \(darwin\))" | |
192.168.99.100 - - [26/Apr/2017:23:47:57] "POST /v2/dmage/busybox/blobs/uploads/ HTTP/1.1" 404 233 "-" "docker/1.13.1 go/go1.7.5 git-commit/092cba3 kernel/4.4.47-boot2doc |
This file contains 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
"".A t=1 size=16 args=0x18 locals=0x0 | |
0x0000 00000 (foo.go:3) TEXT "".A(SB), $0-24 | |
0x0000 00000 (foo.go:3) FUNCDATA $0, gclocals·d4dc2f11db048877dbc0f60a22b4adb3(SB) | |
0x0000 00000 (foo.go:3) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB) | |
0x0000 00000 (foo.go:4) MOVQ "".x+16(FP), AX | |
0x0005 00005 (foo.go:4) TESTQ AX, AX | |
0x0008 00008 (foo.go:4) SETEQ AL | |
0x000b 00011 (foo.go:4) MOVB AL, "".~r1+24(FP) | |
0x000f 00015 (foo.go:4) RET | |
0x0000 48 8b 44 24 10 48 85 c0 0f 94 c0 88 44 24 18 c3 H.D$.H......D$.. |
This file contains 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
> 2017/04/10 17:54:33.109309 length=237 from=0 to=236 | |
GET /v2/ HTTP/1.1\r | |
Host: registry.free-int.openshift.com\r | |
User-Agent: docker/1.12.6 go/go1.7.4 kernel/4.10.8-200.fc25.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.6 \\(linux\\))\r | |
Accept-Encoding: gzip\r | |
Connection: close\r | |
\r | |
< 2017/04/10 17:54:33.218820 length=520 from=0 to=519 | |
HTTP/1.1 401 Unauthorized\r | |
Content-Type: application/json; charset=utf-8\r |
This file contains 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
$ socat -v TCP4-LISTEN:80,reuseaddr,fork TCP4:172.30.1.1:5000 | |
... | |
> 2017/04/10 18:39:55.619349 length=392 from=0 to=391 | |
GET /openshift/token?account=developer&scope=repository%3Amyproject%2Fdebian%3Apush%2Cpull HTTP/1.1\r | |
Host: 127.0.0.1\r | |
User-Agent: docker/1.12.6 go/go1.7.4 kernel/4.10.8-200.fc25.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.6 \\(linux\\))\r | |
Authorization: Basic ZGV2ZWxvcGVyOmtENVBrMmFwSFpTZW1pLVRGa2VjanZKVUVqUlVFZy11UTIwcnJUSnhjdFk=\r | |
Accept-Encoding: gzip\r | |
Connection: close\r | |
\r |
This file contains 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 worker provides observable collections of runnable tasks. | |
package worker | |
import ( | |
"context" | |
"sync" | |
) | |
// Interface defines a general worker. | |
type Interface interface { |
This file contains 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
import random | |
from sklearn import datasets, cross_validation, metrics | |
import tensorflow as tf | |
from tensorflow.contrib import layers | |
from tensorflow.contrib import learn | |
import numpy as np | |
random.seed(42) | |
# Load dataset and split it into train / test subsets. |
This file contains 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
for (i = 0; i < 128; i++) { | |
if (!strcmp(s, get_sym(ctx, KT_LATIN, i))) | |
return K(KT_LATIN, i); | |
} | |
if (direction == TO_UNICODE) { | |
for (i = 0; i < charsets_size; i++) { | |
p = (sym *) charsets[i].charnames; | |
for (j = charsets[i].start; j < CHARSET_SIZE; j++, p++) { | |
if (!strcmp(s, p->name)) |