This file contains hidden or 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
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "flag" | |
| "fmt" |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: netdata-slave-cfg | |
| namespace: monitoring | |
| data: | |
| ND_1: "netdata.conf|global/memory mode = ram" | |
| ND_2: "netdata.conf|web/mode = none" | |
| ND_3: "stream.conf|stream/enabled = yes" | |
| ND_4: "stream.conf|stream/destination = 192.168.10.1:19999" |
This file contains hidden or 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
| apiVersion: batch/v2alpha1 | |
| kind: CronJob | |
| metadata: | |
| creationTimestamp: 2017-08-09T15:17:59Z | |
| labels: | |
| run: hello | |
| name: hello | |
| namespace: default | |
| spec: | |
| concurrencyPolicy: Forbid |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: monitoring | |
| --- | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: netdata-master | |
| namespace: monitoring |
This file contains hidden or 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
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRole | |
| metadata: | |
| name: ingress | |
| rules: | |
| - apiGroups: | |
| - "" | |
| - "extensions" | |
| resources: | |
| - configmaps |
This file contains hidden or 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
| unbind C-b | |
| set -g prefix C-b | |
| #urxvt tab like window switching (-n: no prior escape seq) | |
| bind -n M-down new-window | |
| bind -n M-left prev | |
| bind -n M-right next | |
| #bind -n C-left swap-window -t -1 | |
| #bind -n C-right swap-window -t +1 |
This file contains hidden or 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 [ ! -e ~/.antigen/source/antigen.zsh ];then | |
| mkdir ~/.antigen | |
| git clone https://github.com/zsh-users/antigen.git ~/.antigen/source | |
| fi; | |
| if [ ! -e "$HOME/.scm_breeze/scm_breeze.sh" ];then | |
| git clone git://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze | |
| fi; | |
| source ~/.antigen/source/antigen.zsh |
This file contains hidden or 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
| package main | |
| import ( | |
| "bytes" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" | |
| "time" |
This file contains hidden or 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
| Section "InputClass" | |
| Identifier "keyboard" | |
| Driver "evdev" | |
| MatchIsKeyboard "on" | |
| Option "XkbModel" "evdev" | |
| Option "XkbLayout" "us,ir" | |
| Option "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll" | |
| EndSection |
This file contains hidden or 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
| #!/usr/bin/perl | |
| ## Made by Pierre Mavro/Deimosfr <deimos@deimos.fr> | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use Getopt::Long; | |
| # Get CPU usage | |
| sub get_network_usage { |