Skip to content

Instantly share code, notes, and snippets.

View booo's full-sized avatar

Philipp Borgers booo

View GitHub Profile
Netgear # flinfo
Bank # 1: CFI conformant FLASH (portwidth:16 x chipwidth: 16) Size: 16 MB in 128 Sectors
Erase timeout 16384 ms, write timeout 1 ms, buffer write timeout 4096 ms, buffer size 32
Sector Start Addresses:
BEC00000 (RO) BEC20000 (RO) BEC40000 (RO) BEC60000 (RO) BEC80000
BECA0000 BECC0000 BECE0000 BED00000 BED20000
BED40000 BED60000 BED80000 BEDA0000 BEDC0000
BEDE0000 BEE00000 BEE20000 BEE40000 BEE60000
BEE80000 BEEA0000 BEEC0000 BEEE0000 BEF00000
Netgear # tftp 2800000 openwrt-octeon-vmlinux-initramfs.elf;bootoctlinux 2800000
Using octeth0 device
TFTP from server 192.168.0.23; our IP address is 192.168.0.1
Filename 'openwrt-octeon-vmlinux-initramfs.elf'.
Load address: 0x2800000
Loading: #################################################################
############
done
Bytes transferred = 10650760 (a28488 hex)
ELF file is 64 bit
@booo
booo / foo
Created February 23, 2014 17:14
U-Boot 1.1.4 (Jul 17 2012 - 17:01:37)
OM2P-LC (ar9331) U-boot
DRAM: #### TAP VALUE 1 = f, 2 = f
64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 224k for U-Boot at: 83fc4000
Reserving 384k for malloc() at: 83f64000
Reserving 44 Bytes for Board Info at: 83f63fd4
Reserving 36 Bytes for Global Data at: 83f63fb0
$ 'main'
\
-n1:2:-{list_reverse}-{list_reverse}-{list_print}-#
-n1:2:-{list_reverse}-{list_print}-#
test for list_append
--n1:0:-n2:3:-{list_append}-{list_print}-#
test for list_len
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
_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"
#!/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:
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
COMMON_NAME=$1
if [ "${COMMON_NAME}x" = "x" ]; then
echo "Usage: ./genkey.sh <dns>"
exit 1
fi
SUB="
@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