Skip to content

Instantly share code, notes, and snippets.

View ngtuna's full-sized avatar

Tuna ngtuna

View GitHub Profile
@ngtuna
ngtuna / lor_sebastien.txt
Created January 5, 2015 18:34
LoR from Sebastien Goasguen
Referee: Sebastien Goasguen.
Candidate: Anh-Tu Nguyen
#######################################
## Interview before the GSoC contest ##
#######################################
Main point: He was able to complete assigned works and had a good habit of planning prior to work.
+ I interviewed him about the issue he had to mitigate during the contest.
+ He demonstrated good knowledge-base about generic Cloud Computing.
@ngtuna
ngtuna / gist:35906aa5f4455dcf61ce
Created March 27, 2015 09:24
bosh_openstack_issue
root@ubuntu:~/citus-installation/stemcells# bosh task 8 --debug
Director task 8
I, [2015-03-27T08:54:34.620930 #1861] [0x3fcf220ff330] INFO -- TaskHelper: Director Version: 1.2889.0
I, [2015-03-27T08:54:34.621082 #1861] [0x3fcf220ff330] INFO -- TaskHelper: Enqueuing task: 8
I, [2015-03-27 08:54:36 #6219] [] INFO -- DirectorJobRunner: Looking for task with task id 8
D, [2015-03-27 08:54:36 #6219] [] DEBUG -- DirectorJobRunner: (0.001908s) SELECT * FROM "tasks" WHERE "id" = 8
I, [2015-03-27 08:54:36 #6219] [] INFO -- DirectorJobRunner: Starting task: 8
I, [2015-03-27 08:54:36 #6219] [task:8] INFO -- DirectorJobRunner: Creating job
D, [2015-03-27 08:54:39 #6219] [task:8] DEBUG -- DirectorJobRunner: excon.request {:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.27.0 fog-core/1.27.4", "Content-Type"=>"application/json", "Host"=>"10.10.0.9:5000"}, :idempotent=>false, :instrumentor_name=>"exco
root@ubuntu:~# curl -s -X POST http://10.10.0.9:5000/v2.0/tokens -H "Content-Type: application/json" -d '{"auth": {"tenantName": "'"FSoft Citus"'", "passwordCredentials": {"username": "'"tuna7"'", "password": "'"ghi@789"'"}}}'
{"access": {"token": {"issued_at": "2015-03-27T09:13:22.003318", "expires": "2015-03-27T10:13:21Z", "id": "MIILHgYJKoZIhvcNAQcCoIILDzCCCwsCAQExCTAHBgUrDgMCGjCCCXQGCSqGSIb3DQEHAaCCCWUEgglheyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNS0wMy0yN1QwOToxMzoyMi4wMDMzMTgiLCAiZXhwaXJlcyI6ICIyMDE1LTAzLTI3VDEwOjEzOjIxWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkhvc3QgQ2l0dXMgQ2xvdWQgZm9yIEZTb2Z0ICYgRklNIiwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiZTQ1YTM3YjM0OWRkNGE1Njk5YjNjODIxZDA0MGVkM2MiLCAibmFtZSI6ICJGU29mdCBDaXR1cyJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjAuOTo4Nzc0L3YyL2U0NWEzN2IzNDlkZDRhNTY5OWIzYzgyMWQwNDBlZDNjIiwgInJlZ2lvbiI6ICJyZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzEwLjEwLjAuOTo4Nzc0L3YyL2U0NWEzN2IzNDlkZDRhNTY5OW
@ngtuna
ngtuna / bosh deploy log
Created July 28, 2015 02:35
bosh deploy log
root@ubuntu:~# bosh deployment /root/citus-installation/manifest/cf-openstack-ftel-210-HA.yml
Deployment set to `/root/citus-installation/manifest/cf-openstack-ftel-210-HA.yml'
root@ubuntu:~# bosh -n deploy
Processing deployment manifest
------------------------------
Getting deployment properties from director...
Compiling deployment manifest...
Deploying
@ngtuna
ngtuna / bosh task 510 log
Created July 28, 2015 02:40
bosh task 510 log
This file has been truncated, but you can view the full file.
root@ubuntu:~# bosh task 510 --debug
Director task 510
I, [2015-07-28T02:31:46.181554 #1029] [0x3fc04bd7332c] INFO -- TaskHelper: Director Version: 1.2968.0
I, [2015-07-28T02:31:46.181773 #1029] [0x3fc04bd7332c] INFO -- TaskHelper: Enqueuing task: 510
I, [2015-07-28 02:31:47 #12250] [] INFO -- DirectorJobRunner: Looking for task with task id 510
D, [2015-07-28 02:31:47 #12250] [] DEBUG -- DirectorJobRunner: (0.001074s) SELECT NULL
D, [2015-07-28 02:31:47 #12250] [] DEBUG -- DirectorJobRunner: (0.000237s) SELECT * FROM "tasks" WHERE "id" = 510
I, [2015-07-28 02:31:47 #12250] [] INFO -- DirectorJobRunner: Starting task: 510
I, [2015-07-28 02:31:47 #12250] [task:510] INFO -- DirectorJobRunner: Creating job
root@ip-10-10-10-14:~/gocode/src/github.com/skippbox/kcompose# make binary
docker build -t "libcompose-dev:kcompose" .
Sending build context to Docker daemon 17.44 MB
Step 0 : FROM golang:1.4.2-cross
---> b99ec45c9d74
Step 1 : RUN apt-get update && apt-get install -y iptables build-essential --no-install-recommends
---> Using cache
---> 7d9e5ffc6131
Step 2 : RUN go get github.com/mitchellh/gox
---> Using cache
@ngtuna
ngtuna / ServiceConfigV2
Last active March 19, 2016 23:30
New ServiceConfig struct for composefile v2.
type Build struct {
Context string `yaml:"context, omitempty"`
Dockerfile string `yaml:"context, omitempty"`
Args MaporEqualSlice `yaml:"args, omitempty"`
}
type Log struct {
Driver strings `yaml:"driver, omitempty"`
options MaporColonSlice `yaml:"options, omitempty"`
}
version: '2'
services:
zookeeper:
image: 'bitnami/zookeeper:latest'
volumes:
- 'zookeeper_data:/var/zookeeper'
ports:
- '2181:2181'
kafka:
depends_on:
$ kubectl logs -n custom-metrics custom-metrics-apiserver-812990528-zc5zr -f
I0809 11:40:01.652887 1 serving.go:279] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)
I0809 11:40:03.549396 1 round_trippers.go:386] curl -k -v -XGET -H "User-Agent: adapter/v0.0.0 (linux/amd64) kubernetes/$Format" -H "Accept: application/json, */*" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJjdXN0b20tbWV0cmljcyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJjdXN0b20tbWV0cmljcy1hcGlzZXJ2ZXItdG9rZW4tODNzaDkiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiY3VzdG9tLW1ldHJpY3MtYXBpc2VydmVyIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiODEzOThlMDAtN2NmNi0xMWU3LTg5NmQtMDgwMDI3NGE0ZjNiIiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OmN1c3RvbS1tZXRyaWNzOmN1c3RvbS1tZXRyaWNzL
root@elasticsearch-elk-3026517596-nkm5n:/usr/share/elasticsearch/data/nodes/0# ls -la indices/
total 360
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 11 07:00 -AlzWN6IQi6o64chW_FUFA
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 10 07:00 -LYSoW9jTSSUrvBYk8-21g
drwxr-xr-x 90 elasticsearch elasticsearch 4096 Nov 28 00:00 .
drwxr-xr-x 4 elasticsearch elasticsearch 4096 Aug 19 23:10 ..
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 17 07:00 0OUyGtQIRh2TyvZbbDUx1A
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 5 07:00 0msU5uXOQauWBC53kMfO5g
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 2 07:00 1ZZQ7Z6NQh2VUEOwIlE3Eg
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 12 07:00 1gOohCWITeu_EbVCdkW7Xw