Skip to content

Instantly share code, notes, and snippets.

View booo's full-sized avatar

Philipp Borgers booo

View GitHub Profile
@booo
booo / checklist_rj45.md
Last active June 9, 2016 13:58
rj45 stecker crimpen

RJ45 Stecker crimpen

Material

  • Hirose TM31 Stecker
  • Hirose TM31 Einfädelhilfe
  • Hirose TM31 Knickschutz
  • Netzwerkkabel

Werkzeug

@booo
booo / txt
Created January 26, 2016 22:29
dns problem rhxb-rt1
root@rhxb-rt1:~# time nslookup spline.de
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost
Name: spline.de
Address 1: 2001:6f8:1c3c:babe::71:1
Address 2: 130.133.110.71 vm-staticweb.spline.inf.fu-berlin.de
real 0m 20.29s
user 0m 0.00s
sys 0m 0.00s
@booo
booo / main.c
Created May 13, 2015 12:23
(minimal) libcoap client example
#include "libcoap/coap.h"
#include <arpa/inet.h>
#include <stdio.h>
int main() {
struct sockaddr_in6 sa_dst;
// clear memory
@booo
booo / owm_delete.sh
Created January 29, 2015 12:00
owm_delete.sh
_rev=$(curl "http://api.openwifimap.net/db/$1" \
| python -c 'import json,sys;print(json.load(sys.stdin)["_rev"])')
curl -X DELETE "http://openwifimap.net/openwifimap/$1?rev=$_rev"
@booo
booo / iperf
Created January 24, 2015 11:57
iperf
foobar@bb-a.ak.ber.de.ffrl.de~ % iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
d[ 4] local 185.66.195.0 port 5001 connected with 77.87.48.10 port 32974
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.1 sec 29.3 MBytes 24.3 Mbits/sec
[ 5] local 185.66.195.0 port 5001 connected with 77.87.48.10 port 32975
[ 5] 0.0-10.5 sec 47.8 MBytes 38.3 Mbits/sec
#!/bin/bash
COMMON_NAME=$1
if [ "${COMMON_NAME}x" = "x" ]; then
echo "Usage: ./genkey.sh <dns>"
exit 1
fi
SUB="
make[2]: Entering directory `/export/local-1/public/borgers/firmware/openwrt/feeds/routing/alfred'
CFLAGS="-I/export/local-1/public/borgers/firmware/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/export/local-1/public/borgers/firmware/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/export/local-1/public/borgers/firmware/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/export/local-1/public/borgers/firmware/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -ffunction-sections -fdata-sections -flto" LDFLAGS="-L/export/local-1/public/borgers/firmware/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/export/local-1/public/borgers/firmware/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/export/local-1/public/borgers/firmware/openwr
#!/bin/bash
# If you got false positives, try a higher value
BOGOTHRESH=1500
# Defines how much unsoliced incoming udp is accepted
BOGOIGRESS=20
# Note: for mail alarm, you need "ssmtp" installed and configured.
# Example /etc/ssmtp/ssmtp.conf (debian/ubuntu) for GMX needs:
_rev=$(curl "http://api.openwifimap.net/db/$1" \
| python -c 'import json,sys;print(json.load(sys.stdin)["_rev"])')
curl -X DELETE "http://openwifimap.net/openwifimap/$1?rev=$_rev"
My traceroute [v0.82]
rhnk-core (0.0.0.0) Fri May 2 23:31:57 2014
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. mid2.wg1337.olsr 0.0% 18 1.2 1.6 1.1 3.0 0.5
2. rhnk-core.olsr 0.0% 18 1.2 1.7 1.2 2.8 0.5
3. 217.0.119.70 0.0% 18 16.4 16.8 16.1 18.3 0.7
4. 217.0.76.242 0.0% 18 20.0 19.9 18.0 23.2 1.5
5. h-ea3-i.H.DE.NET.DTAG.DE 0.0% 18 21.9 31.8 21.2 114.9 24.6