docker --version
Docker version 1.13.1, build 092cba3
- start a docker container (ubuntu)
docker run -it ubuntu bash
root@1834dea29581:/# apt-get update
root@1834dea29581:/# apt-get install vim -y
| package grains | |
| import "errors" | |
| func Square(i int) (uint64, error) { | |
| // fail fast | |
| if i < 1 || i > 64 { | |
| return 0, errors.New("square is out of range") | |
| } |
| pprof --text --base=profile.0001.heap -alloc_objects envoy profile.0384.heap | |
| File: envoy | |
| Type: alloc_objects | |
| Showing nodes accounting for 57222349, 91.39% of 62614372 total | |
| Dropped 1104 nodes (cum <= 313071) | |
| flat flat% sum% cum cum% | |
| 12356596 19.73% 19.73% 12356598 19.73% Envoy::Buffer::OwnedImpl::reserve | |
| 12113551 19.35% 39.08% 12113553 19.35% Envoy::Buffer::OwnedImpl::add | |
| 4972669 7.94% 47.02% 4972669 7.94% std::__1::basic_string::append |
| Showing nodes accounting for 790927.31kB, 95.10% of 831706.36kB total | |
| Dropped 1182 nodes (cum <= 4158.53kB) | |
| flat flat% sum% cum cum% | |
| 771708kB 92.79% 92.79% 771708.26kB 92.79% Envoy::Buffer::OwnedImpl::add | |
| 6775.90kB 0.81% 93.60% 6775.90kB 0.81% nghttp2_bufs_init3 | |
| 5344.86kB 0.64% 94.24% 5344.86kB 0.64% Envoy::Stats::FakeSymbolTableImpl::populateList | |
| 2433.90kB 0.29% 94.54% 20326.57kB 2.44% std::__1::__function::__func::operator() | |
| 1538.20kB 0.18% 94.72% 7052.86kB 0.85% Envoy::Upstream::ClusterManagerImpl::ThreadLocalClusterManagerImpl::ClusterEntry::ClusterEntry | |
| 1035.22kB 0.12% 94.85% 9497.12kB 1.14% session_new | |
| 995.62kB 0.12% 94.97% 5186.22kB 0.62% Envoy::Stats::AllocatorImpl::makeCounter |
| File: envoy | |
| Type: inuse_space | |
| Showing nodes accounting for 792089.69kB, 95.07% of 833184.75kB total | |
| Dropped 1124 nodes (cum <= 4165.92kB) | |
| flat flat% sum% cum cum% | |
| 771712kB 92.62% 92.62% 771712.26kB 92.62% Envoy::Buffer::OwnedImpl::add | |
| 6791.91kB 0.82% 93.44% 6791.91kB 0.82% nghttp2_bufs_init3 | |
| 5918.74kB 0.71% 94.15% 5918.74kB 0.71% Envoy::Stats::FakeSymbolTableImpl::populateList | |
| 2448.34kB 0.29% 94.44% 21163.86kB 2.54% std::__1::__function::__func::operator() | |
| 1546.27kB 0.19% 94.63% 7097.63kB 0.85% Envoy::Upstream::ClusterManagerImpl::ThreadLocalClusterManagerImpl::ClusterEntry::ClusterEntry |
| apiVersion: kafka.banzaicloud.io/v1beta1 | |
| kind: KafkaCluster | |
| metadata: | |
| labels: | |
| controller-tools.k8s.io: "1.0" | |
| kafka_cr: kf-kafka | |
| name: kf-kafka | |
| namespace: alerting | |
| spec: | |
| headlessServiceEnabled: false |
| ### Keybase proof | |
| I hereby claim: | |
| * I am prune998 on github. | |
| * I am prune (https://keybase.io/prune) on keybase. | |
| * I have a public key ASBe2BvV992Wnl4co7H3NDXUmWPitPIMYlj7ISAG_PULqgo | |
| To claim this, I am signing this object: |
docker --version
Docker version 1.13.1, build 092cba3
docker run -it ubuntu bash
root@1834dea29581:/# apt-get update
root@1834dea29581:/# apt-get install vim -y
| #!/usr/bin/env python | |
| import os | |
| from pprint import pprint | |
| class word_counter(): | |
| def __init__(self): | |
| print "starting the word counter Class" | |
| def topwords(self,fileDesc,count): |
| #!/usr/bin/env python | |
| import os | |
| from pprint import pprint | |
| word_list = {} | |
| count = 0 | |
| with open("text.txt") as f: | |
| for word in f.readline().split(): | |
| count += 1 |
| --- | |
| - hosts: localhost | |
| user: belisarius | |
| vars: | |
| test: | |
| - [ "uid", ["val1","val2"]] | |
| - [ "uid2", ["val1","val2"]] | |
| tasks: | |
| - debug: msg="{{ test }}" | |
| # result is : |