Skip to content

Instantly share code, notes, and snippets.

View monzo-alertmanager-config.yaml
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##
@jpweber
jpweber / usb_hid_keys.h
Created Sep 22, 2019 — forked from MightyPork/usb_hid_keys.h
USB HID Keyboard scan codes
View usb_hid_keys.h
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
View grafana-ldap-configuration
## Environment Variables for grafana-deployment.yaml
GF_AUTH_LDAP_ENABLED=true
GF_AUTH_LDAP_CONFIG_FILE=/etc/grafana/ldap.toml
## Volume Mounts
- mountPath: /etc/grafana/ldap.toml
name: grafana-ldap-config
readOnly: false
## Volume
View ingress-doc.yaml
# Below example would be for something externally available
# at http://app1.example.com/ handes URIs of /, /foo and /bar
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: http-service-test
labels:
View vimrc
" install vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
View kubeadm config defaults 1.14
apiVersion: kubeadm.k8s.io/v1beta1
bootstrapTokens:
- groups:
- system:bootstrappers:kubeadm:default-node-token
token: abcdef.0123456789abcdef
ttl: 24h0m0s
usages:
- signing
- authentication
kind: InitConfiguration
@jpweber
jpweber / gist:42462c8409793ccd19585bacbdcb7270
Created Jan 31, 2019 — forked from jefferai/gist:e2bebc3bb97fed521666
Example of Vault PKI (X509) backend issuing certificates to client and server, which then perform TLS mutual auth
View gist:42462c8409793ccd19585bacbdcb7270
package main
import (
"crypto/tls"
"fmt"
"html"
"io/ioutil"
"log"
"net"
"net/http"
View vimrc
" install vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'maralla/completor.vim'
@jpweber
jpweber / http-test-service.yaml
Last active Sep 7, 2018
kube manifest for http test service
View http-test-service.yaml
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: http-service-example-v2
spec:
replicas: 3
strategy:
rollingUpdate:
maxUnavailable: 1
@jpweber
jpweber / alertmanager.yaml
Created Jun 21, 2018
alert manager config example
View alertmanager.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-alertmanager
namespace: monitoring
data:
alertmanager.yml: |-
global:
##
You can’t perform that action at this time.