- Get a token from Weave Cloud and set it in
prometheus.yaml
. - Install Prometheus on Kubernetes:
kubectl apply -f prometheus.yaml
- Goto
http://NODE_IP:30900/targets
to check status.
This file contains 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
echo 0 > /sys/kernel/debug/tracing/tracing_on | |
echo > /sys/kernel/debug/tracing/trace | |
echo function_graph > /sys/kernel/debug/tracing/current_tracer | |
echo $KERNEL_FUNCTION > /sys/kernel/debug/tracing/set_graph_function | |
echo 1 > /sys/kernel/debug/tracing/tracing_on | |
$DO_STUFF | |
echo 0 > /sys/kernel/debug/tracing/tracing_on | |
echo > /sys/kernel/debug/tracing/set_graph_function |
This file contains 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 | |
set -ue | |
API_URL="https://circleci.com/api/v1.1" | |
VCS_TYPE="github" | |
CACHE_DIR="/tmp/.circleci-grep" | |
PROJECT="" | |
BUILD="" |
In 2016 I thoroughly logged most of my days (302/366 days; didn't log on climbing trips). Some stats:
- 183 days when I took a cold shower in the morning.
- 113 sessions of pilates in the morning.
- 106 days when I meditated >5min.
- Ran 339.39km (46 sessions).
- Commuted 63 days by bike.
- 114 sessions of climbing; 159hr spent indoors.
- 65 days when I had at least one meal with meat.
- Consumed 483 caffeine units (>20mg).
This file has been truncated, but you can view the full file.
This file contains 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
execve("./prog/weaveutil/weaveutil", ["./prog/weaveutil/weaveutil", "container-addrs", "weave", "09a29216781c", "859174e2a134", "6f1b45b7ca7f", "84ce7a1efba9", "4b78fdc29e51", "69dd95e85c99", "3b6f18e9cf59", "7266af2ad316", "77f96221b996", "f2cc8f7ba6fd", "44be62695f69", "6caa9c024124", "ee1a86ede15b", "b8cf2435ed46", "f352eaf0ac97", "09fc9dca3e9e", "5c9799078a84", "660ba4a51ef9", "4f2930f97dde", "2a8034422ae8", "21ca7c97d883", "754c0571e48c", "8281423c6b3b", "19328cdafdb8", "36027a3b2639", "e75efc9eae56", "625fd8775652", "86bb47219417", "2da4dd07188b", "4b7ef00a3dac", "a9cdbd956012", "44e62ebb4194", "fc06dddedbbb", "256f08324429", "6b9825a7542a"], [/* 17 vars */]) = 0 | |
uname({sysname="Linux", nodename="fitzroy", ...}) = 0 | |
brk(NULL) = 0x16c7000 | |
brk(0x16c81c0) = 0x16c81c0 | |
arch_prctl(ARCH_SET_FS, 0x16c7880) = 0 | |
set_tid_address(0x16c7b50) = 3357 | |
set_robust_list(0x16c7b60, 24) = 0 | |
rt_sigaction(SIGRTMIN, {0x72e8d0, [], SA_RESTORER|SA_ |
This file contains 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/sh | |
# * * * * * battery.sh /home/brb/Dropbox/battery-stats.txt | |
set -eu | |
for b in /sys/class/power_supply/BAT*; do | |
echo "$(basename "$b") $(date +%s) $(cat ${b}/power_now) $(cat ${b}/energy_now)" >> $1 | |
done |
This file contains 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/sh | |
DIR="$1" | |
#echo "Renaming JPG -> jpg ..." | |
#for f in $DIR/*; do | |
# mv "$f" $(echo "$f" | tr '[:upper:]' '[:lower:]') | |
#done | |
for f in $DIR/*; do |
I hereby claim:
- I am brb on github.
- I am martynasp (https://keybase.io/martynasp) on keybase.
- I have a public key whose fingerprint is 26E3 A522 51B3 4AD1 C2CD E5CB 5385 B938 B74F 0D71
To claim this, I am signing this object:
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
static inline unsigned int bpf_num_possible_cpus(void) | |
{ | |
static const char *fcpu = "/tmp/foo"; | |
unsigned int start, end, possible_cpus = 0; | |
char buff[128]; |
This file contains 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
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig | |
index 0936da592..589d7f3a5 100644 | |
--- a/drivers/net/Kconfig | |
+++ b/drivers/net/Kconfig | |
@@ -145,13 +145,15 @@ config MACVTAP | |
To compile this driver as a module, choose M here: the module | |
will be called macvtap. | |
+config IPVLAN_L3S | |
+ depends on NETFILTER |