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
[gerrit] | |
replicateOnStartup = true | |
[remote "github-monogon"] | |
url = git@github.com:monogon-dev/${name} | |
projects = monogon | |
projects = infralib | |
push = +refs/heads/*:refs/heads/* | |
push = +refs/tags/*:refs/tags/* | |
timeout = 30 |
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
#!/usr/bin/env python3 | |
""" | |
Converts geojson with polygon features to a JSON blob readable by http://shadowcalculator.eu | |
Usage: ./shadowcalc.py trees.geojson | |
""" | |
import sys | |
import json | |
import time |
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
# .config/i3/config | |
exec xrandr --dpi 144 | |
# .Xresources | |
Xft.dpi: 144 | |
Xft.hinting: 1 | |
Xft.hintstyle: hintslight | |
Xft.antialias: 1 |
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
[Service] | |
ExecStart=/usr/local/bin/folding_exporter -teamID 257832 -listen [::1]:8080 | |
User=prometheus | |
Restart=always | |
RestartSec=10 | |
[Install] | |
WantedBy=multi-user.target |
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
#!/usr/bin/python3 | |
# -*- coding: utf8 -*- | |
""" | |
Screen scrapes Allestörungen.de spark lines | |
""" | |
import sys | |
import requests | |
import lxml.html |
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
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"github.com/prometheus/client_golang/prometheus" | |
"github.com/prometheus/client_golang/prometheus/promhttp" | |
"github.com/tendermint/tendermint/rpc/client" | |
"log" | |
"net/http" |
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
# First container | |
cat <<EOF > Dockerfile.1 | |
FROM busybox | |
ADD rootfs / | |
EOF | |
mkdir rootfs | |
ln -s evil/level1/level2 rootfs/proc |
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
#!/usr/bin/stap | |
global root_ns; | |
probe begin | |
{ | |
root_ns = mnt_ns(); | |
printf("root ns: %d", root_ns); | |
printf("\n%20s %6s %16s %6s %16s %40s %s\n", "PP", "UID", "MNT_NS", "PID", "COMM", "FLAGS", "PATH"); | |
} |
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
root@dragon:~/leo2# find . -ls | |
642686 4 drwxr-xr-x 3 root root 4096 Sep 22 00:21 . | |
642727 4 drwxr-xr-x 4 root root 4096 Sep 22 00:00 ./rootfs | |
662833 4 -rwxr-xr-x 1 root root 62 Sep 22 00:00 ./rootfs/exploit.sh | |
654011 4 drwxr-xr-x 3 root root 4096 Sep 21 23:43 ./rootfs/proc | |
662371 4 drwxr-xr-x 4 root root 4096 Sep 21 23:44 ./rootfs/proc/self | |
662372 4 drwxr-xr-x 2 root root 4096 Sep 21 23:43 ./rootfs/proc/self/attr | |
662375 0 -rw-r--r-- 1 root root 0 Sep 21 23:43 ./rootfs/proc/self/attr/exec | |
662419 0 -rw-r--r-- 1 root root 0 Sep 21 23:44 ./rootfs/proc/self/status | |
662416 4 drwxr-xr-x 2 root root 4096 Sep 21 23:48 ./rootfs/proc/self/fd |
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
root@dragon:~/leo2# find . -ls | |
642686 4 drwxr-xr-x 3 root root 4096 Sep 22 00:21 . | |
642727 4 drwxr-xr-x 4 root root 4096 Sep 22 00:00 ./rootfs | |
662833 4 -rwxr-xr-x 1 root root 62 Sep 22 00:00 ./rootfs/exploit.sh | |
654011 4 drwxr-xr-x 3 root root 4096 Sep 21 23:43 ./rootfs/proc | |
662371 4 drwxr-xr-x 4 root root 4096 Sep 21 23:44 ./rootfs/proc/self | |
662372 4 drwxr-xr-x 2 root root 4096 Sep 21 23:43 ./rootfs/proc/self/attr | |
662375 0 -rw-r--r-- 1 root root 0 Sep 21 23:43 ./rootfs/proc/self/attr/exec | |
662419 0 -rw-r--r-- 1 root root 0 Sep 21 23:44 ./rootfs/proc/self/status | |
662416 4 drwxr-xr-x 2 root root 4096 Sep 21 23:48 ./rootfs/proc/self/fd |
NewerOlder