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
sudo python mem.py | |
Private + Shared = RAM used Program | |
136.0 KiB + 40.0 KiB = 176.0 KiB startpar | |
188.0 KiB + 41.0 KiB = 229.0 KiB acpid | |
244.0 KiB + 76.5 KiB = 320.5 KiB cron | |
308.0 KiB + 60.5 KiB = 368.5 KiB init | |
352.0 KiB + 143.0 KiB = 495.0 KiB rpcbind | |
276.0 KiB + 289.0 KiB = 565.0 KiB sleep (3) |
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
while true;do curl -X GET --header "content-type: application/json" http://api.log4security.com:30819/kube ;done |
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
If you can't run kubectl command in google cloud shell or your local workstation, run | |
$ gcloud container clusters get-credentials <CLUSTER_NAME> |
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
➜ ~ history | grep fabric | |
6953 kubectl expose rc fabric8 --type=LoadBalancer --port=80 --target-port=9376 | |
6957 curl 104.155.203.240:9376/api/v1/proxy/namespaces/default/services/fabric8/ | |
6960 kubectl expose rc fabric8 --type=LoadBalancer --port=80 --target-port=9090 | |
6964 kubectl expose rc fabric8 --type=LoadBalancer --port=80 --target-port=80 | |
6973 curl http://104.155.203.240/api/v1/proxy/namespaces/default/services/fabric8 | |
6974 curl http://104.155.192.3`/api/v1/proxy/namespaces/default/services/fabric8\nOAOA\n\n\n\n'\n' | |
6975 curl https://104.155.192.31/api/v1/proxy/namespaces/default/services/fabric8 | |
6976 curl http://104.155.192.31/api/v1/proxy/namespaces/default/services/fabric8 | |
6979 docker pull fabric8/hawtio-kubernetes |
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
//refer to http://fabric8.io/guide/getStarted/gke.html | |
// kc create -f http://central.maven.org/maven2/io/fabric8/apps/console-kubernetes/2.2.19/console-kubernetes-2.2.19-kubernetes.json | |
{ | |
"apiVersion": "v1", | |
"items": [ | |
{ | |
"apiVersion": "v1", | |
"imagePullSecrets": [ | |
], |
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
{ | |
"name": "polymer-firebase-qa", | |
"version": "1.0.0", | |
"dependencies": { | |
"core-elements": "Polymer/core-elements#~0.5.0", | |
"paper-elements": "Polymer/paper-elements#~0.5.0", | |
"pvc-globals": "Divshot/pvc-globals", | |
"firebase-element": "Polymer/firebase-element#~0.5.0", | |
"app-router": "~2.0.2" | |
}, |
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
$ openssl pkcs12 -in key.p12 -out key.pem -nodes |
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
<%{POSINT:syslog_pri}>%{SYSLOGTIMESTAMP:syslog_timestamp} %{DATA:syslog_hostname} %{DATA:syslog_program}: %{POSINT:syslog_pid}: %{GREEDYDATA:syslog_message} |
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
$ jekyll serve | |
Configuration file: /Users/mwang/src/zone/61/log4analytics.com/mingderwang.github.io.source/_config.yml | |
/usr/local/Cellar/ruby/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- jekyll-sitemap (LoadError) | |
from /usr/local/Cellar/ruby/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:29:in `block in require_gems' | |
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:26:in `each' | |
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:26:in `require_gems' | |
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:19:in `conscientious_require' | |
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:79:in `setup' | |
from /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:41:in `initialize' |
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
➜ chef-client ls | |
Vagrantfile chef-validator.pem | |
➜ chef-client vu node2 | |
Bringing machine 'node2' up with 'virtualbox' provider... | |
==> node2: Importing base box 'phusion/ubuntu-14.04-amd64'... | |
==> node2: Matching MAC address for NAT networking... | |
==> node2: Checking if box 'phusion/ubuntu-14.04-amd64' is up to date... | |
==> node2: Setting the name of the VM: chef-client_node2_1426853090304_55807 | |
==> node2: Clearing any previously set forwarded ports... | |
==> node2: Clearing any previously set network interfaces... |