F1 XF86AudioMute
F2 XF86AudioLowerVolume
F3 XF86AudioRaiseVolume
F4 XF86AudioMicMute
F5 XF86MonBrightnessDown
F6 XF86MonBrightnessUp
F7 XF86Display
F8 XF86WLAN
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
#!/bin/bash | |
# Install | |
# - Consul agent | |
# - Prometheus node_exporter | |
# - Jenkins | |
curl -O -L -s https://github.com/prometheus/node_exporter/releases/download/v0.13.0-rc.1/node_exporter-0.13.0-rc.1.linux-amd64.tar.gz | |
curl -O -L -s https://releases.hashicorp.com/consul/0.7.0/consul_0.7.0_linux_amd64.zip | |
unzip consul_0.7.0_linux_amd64.zip |
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
#!/bin/bash | |
USER=kp | |
VAGRANT_VERSION='1.9.1' | |
plugins="vagrant-libvirt vagrant-mutate vagrant-rekey-ssh" | |
sudo dnf install -y \ | |
libxslt-devel \ | |
libxml2-devel \ | |
ruby-devel \ |
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
#!/bin/bash | |
cat $1.txt| \ | |
sed -E 's/\\n//g'| \ | |
awk -F "=>" '{print $1}'| \ | |
rev| \ | |
cut -c 1-| \ | |
rev| \ | |
sed 's/[[:blank:]]//g'| \ | |
sed -E 's/\\//g'|sed 's/^"//'| \ |
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
import groovy.json.JsonBuilder | |
import groovy.json.JsonOutput | |
def json = new JsonBuilder().plugins {} | |
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins() | |
for (p in plugins){ | |
j = new JsonBuilder().plugin { | |
"${p.getShortName()}" "${p.getVersion()}" | |
} |
https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
Following the following formula for storage capacity planning:
needed_disk_space = retention_time_seconds * ingested_samples_per_second * bytes_per_sample
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
[ | |
{ | |
"labels": { | |
"alertname": "ServiceHighRequestLatency", | |
"region": "useast2", | |
"job": "blackbox", | |
"protocol": "https", | |
"service": "www", | |
"instance": "https://www.example.com" | |
}, |
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 ( | |
"context" | |
"fmt" | |
"github.com/google/go-github/v27/github" | |
flag "github.com/spf13/pflag" | |
"golang.org/x/oauth2" | |
"log" | |
"net/url" |
I hereby claim:
- I am kpettijohn on github.
- I am kp_ https://keybase.io/kp_ on keybase.
- I have a public key ASDrnQR36gY_YR1HnEw-ckvaiI1g7dO3PZWt3KNS87EV5Ao
To claim this, I am signing this object:
OlderNewer