Skip to content

Instantly share code, notes, and snippets.

@widgetpl
widgetpl / 60-keyboard.hwdb
Created August 22, 2018 05:34
samsung EJ-BT230 hwdb configuration
# Samsung EJ-BT230
evdev:input:b0005v04E8pA006*
KEYBOARD_KEY_c0224=esc
KEYBOARD_KEY_c0223=f1
KEYBOARD_KEY_c0301=f2
KEYBOARD_KEY_c0302=f3
KEYBOARD_KEY_70065=f4
KEYBOARD_KEY_c0070=f5
KEYBOARD_KEY_c006f=f6
KEYBOARD_KEY_c00e2=f7
---
######################
### CLUSTER SETUP ####
######################
{% if dcos.agent_list is defined -%}
# A YAML nested list (-) of IPv4 addresses to your private agent host names. ( JUST FOR CLI INSTALLATION )
agent_list:
{% for agent in dcos.agent_list -%}
- {{ agent }}
@widgetpl
widgetpl / listing.sh
Created February 8, 2017 18:48
Compiling remote_storage_bridge issue
root@c1ad2f3f2a73:/usr/src/myapp# go build -v
_/usr/src/myapp
# _/usr/src/myapp
./myapp.go:164: cannot use conf (type "github.com/influxdata/influxdb/client".Config) as type "github.com/prometheus/prometheus/vendor/github.com/influxdb/influxdb/client".Config in argument to influxdb.NewClient
./myapp.go:165: cannot use c (type *influxdb.Client) as type "github.com/prometheus/client_golang/prometheus".Collector in argument to "github.com/prometheus/client_golang/prometheus".MustRegister:
*influxdb.Client does not implement "github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/prometheus/prometheus/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "github.com/prometheus/client_golang/prometheus".Metric)
./myapp.go:223: cannot use samples (type "github.com/prometheus/common/model".Samples) as type "github.com/prometheus/prometheus/vendor/github.com/prometheus/common/model".Samples in argument to c.Store
@widgetpl
widgetpl / prom.yml
Last active January 17, 2018 06:08
scrape_configs:
- job_name: 'kubernetes-apiservers'
scheme: https
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: true
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
relabel_configs:
- source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
action: keep