Skip to content

Instantly share code, notes, and snippets.

@nl5887
nl5887 / tld.txt
Created June 27, 2017 10:27
Complete list with all top level domains.
.aaa
.aarp
.abarth
.abb
.abbott
.abbvie
.abc
.able
.abogado
.abudhabi
@nl5887
nl5887 / keycloak.diff
Last active July 12, 2017 15:42
Keycloak https enforcement with letshttps
f20494bdacb419b9f7/opt/jboss/keycloak/standalone/configuration/standalone.xml
397c412
< <http-listener proxy-address-forwarding="${env.PROXY_ADDRESS_FORWARDING}" name="default" socket-binding="http" redirect-socket="https"/>
---
> <http-listener proxy-address-forwarding="true" name="default" socket-binding="http" redirect-socket="https" />
498c513
< <socket-binding name="https" port="${jboss.https.port:8443}"/>
---
> <socket-binding name="https" port="${jboss.https.port:443}"/>
505c520
@nl5887
nl5887 / res.sh
Created July 31, 2017 08:17
res.sh
xrandr --newmode "2560x1080" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync
xrandr --addmode Virtual1 "2560x1080"
xrandr --output Virtual1 --mode "2560x1080"
@nl5887
nl5887 / cleanup.fish
Created August 7, 2017 14:16
docker cleanup
~/P/dump-import  ➦ 973beaf *  docker ps -a|tail -n +2|awk '{print $1}'|xargs -I\{\} docker rm \{\} Mon Aug 7 16:15:31 CEST 2017
{
"source": {
"index": "index",
"query": {
"range": {
"date": {
"gte": "now-1d/d"
}
}
}
@nl5887
nl5887 / do
Created November 28, 2017 11:20
Build Docker from Git repo
#!/bin/bash
DEST=$(mktemp -d)
SRC=$(pwd)
echo "Cloning $SRC into $DEST"
pushd .
cd $DEST
git clone $SRC/.git .
#!/bin/bash
if [ "$#" -eq 0 ]; then
$GOROOT/bin/go $@
exit
fi
LDFLAGS=""
if [ -e scripts/gen-ldflags.go ]; then
LDFLAGS="$(go run -exec ~/.gopath/bin/sign-wrapper.sh scripts/gen-ldflags.go)"
fi
tmux reset terminal
ctrl B q
send-key -R -t {panenr}
@nl5887
nl5887 / config-docker.toml
Last active March 23, 2018 07:36
Honeytrap Docker compose
[listener]
type="agent"
[service.ssh-simulator]
type="ssh-simulator"
port="tcp/22"
credentials=["root:root", "root:password"]
[channel.console]
type="console"
@nl5887
nl5887 / config.toml
Created December 23, 2017 10:21
honeytrap sensor mode
[listener]
type="raw"
interfaces=["ens3"]
[channel.console]
type="console"
[[filter]]
channel=["console"]