Skip to content

Instantly share code, notes, and snippets.

" A sensible vimrc for Go development
"
" Please note that the following settings are some default that I used
" for years. However it might be not the case for you (and your
" environment). I highly encourage to change/adapt the vimrc to your own
" needs. Think of a vimrc as a garden that needs to be maintained and fostered
" throughout years. Keep it clean and useful - Fatih Arslan
call plug#begin()
Plug 'fatih/vim-go'
# Enter ZoneCfg
zonecfg -z df779413-9943-481d-beb8-ba1a376afa2e
# Add Dataset
zonecfg:df779413-...> add dataset
zonecfg:df779413-...:dataset> set name=zones/df779413-9943-481d-beb8-ba1a376afa2e/data
zonecfg:df779413-...:dataset> end
zonecfg:df779413-...> verify
zonecfg:df779413-...> exit
@Smithx10
Smithx10 / gist:f7d54c02760c18955722e9a936c33ccd
Last active August 14, 2017 16:30
node parseData issue
smith@manta # cat dataObj.json | ./demo.js
#!/usr/bin/env node
var config = require(__dirname + '/config.js');
var r = require('rethinkdb')
var stdin = process.stdin,
stdout = process.stdout,
inputChunks = [];
stdin.resume();
{
"this_az": "bs-1",
"manta_nodes": [
"0a416e76-c97b-0010-bdb3-c4544472c3fc",
"40028d03-5c04-b305-b406-aa0700080009",
"7e8f2c31-2296-4446-9a68-5039c501dc21",
"a92fa576-c97b-0010-a443-c4544472c443",
"be233e0c-c67b-0010-82d4-c4544464394f"
],
"marlin_nodes": [
[root@headnode (bs-1) ~]# sdc-napi /networks?name=manta
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 402
Date: Sat, 19 Aug 2017 17:43:04 GMT
Server: SmartDataCenter Networking API
x-request-id: 740e55e1-2a62-4a3c-8b10-2e0fd7e13413
x-response-time: 4
x-server-name: 51285c4f-2a19-4ec5-b1a2-08350a594b2b
Connection: keep-alive
@Smithx10
Smithx10 / gist:380d44649c46f1e4a10b5f2e095364af
Created August 19, 2017 17:44
manta and mantanat nic_tags
[root@headnode (bs-1) ~]# sdc-napi /nic_tags
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 464
Date: Sat, 19 Aug 2017 17:44:12 GMT
Server: SmartDataCenter Networking API
x-request-id: b68c6b7c-f795-4b0e-9763-9404110d88a3
x-response-time: 3
x-server-name: 51285c4f-2a19-4ec5-b1a2-08350a594b2b
Connection: keep-alive
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
# HELP cpu_nr_periods_total Total number of elapsed CFS enforcement intervals
# TYPE cpu_nr_periods_total counter
cpu_nr_periods_total{framework_id="ab779030-8907-42d9-a113-669a1e426e13-0001",id="gitlab.ceee8047-88e3-11e7-9870-4a055ed765b9",source="gitlab.ceee8047-88e3-11e7-9870-4a055ed765b9"} 0
cpu_nr_periods_total{framework_id="ecef6abb-70b8-48f5-a1bd-5afc624b160d-0002",id="node-1_executor__abe37142-31b2-490c-ae2a-1d44cd1e2bce",source=""} 1.330196e+06
# HELP cpu_nr_throttled_total Total number of throttled CFS enforcement intervals.
# TYPE cpu_nr_throttled_total counter
cpu_nr_throttled_total{framework_id="ab779030-8907-42d9-a113-669a1e426e13-0001",id="gitlab.ceee8047-88e3-11e7-9870-4a055ed765b9",source="gitlab.ceee8047-88e3-11e7-9870-4a055ed765b9"} 0
cpu_nr_throttled_total{framework_id="ecef6abb-70b8-48f5-a1bd-5afc624b160d-0002",id="node-1_executor__abe37142-31b2-490c-ae2a-1d44cd1e2bce",source=""} 124784
# HELP cpu_system_seconds_total Total system CPU seconds
# TYPE cpu_system_seconds_total counter
[root@tachyon-dalmadb0 /data/dalmatinerpx/etc]# cat dalmatinerpx.conf
## The path data gets stored into.
##
## Default: /data/dalmatinerpx
##
## Acceptable values:
## - text
run_user_home = /data/dalmatinerpx