Skip to content

Instantly share code, notes, and snippets.

View theonewolf's full-sized avatar

Wolfgang Richter theonewolf

View GitHub Profile
@theonewolf
theonewolf / Makefile
Last active August 29, 2015 13:55
UDP OS X exploration
default:
clang udp.c -o udp
clean:
rm udp
@theonewolf
theonewolf / hiredis.diff
Created January 30, 2014 01:36
hiredis hack to handle user context on connect/disconnect callbacks
diff --git a/async.c b/async.c
index 923a329..a3fc05f 100644
--- a/async.c
+++ b/async.c
@@ -127,8 +127,13 @@ static redisAsyncContext *redisAsyncInitialize(redisContext *c) {
ac->ev.delWrite = NULL;
ac->ev.cleanup = NULL;
- ac->onConnect = NULL;
- ac->onDisconnect = NULL;
@theonewolf
theonewolf / dd.log
Last active January 4, 2016 03:09
disk failure investigation
➜ ~>sudo dd if=/dev/zero of=/dev/sdb bs=4096
[sudo] password for wolf:
dd: writing `/dev/sdb': No space left on device
244190647+0 records in
244190646+0 records out
1000204886016 bytes (1.0 TB) copied, 39976.3 s, 25.0 MB/s
@theonewolf
theonewolf / fonts.log
Created January 10, 2014 02:35
fonts in proposal
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
VKDJWY+NimbusRomNo9L-Medi Type 1 yes yes no 112 0
OCZXCK+NimbusRomNo9L-Regu Type 1 yes yes no 113 0
OQISCG+NimbusMonL-Regu Type 1 yes yes no 114 0
FRNIHB+CMSY8 Type 1 yes yes no 115 0
YDTRWL+NimbusRomNo9L-ReguItal Type 1 yes yes no 116 0
AQTFCU+CMSY10 Type 1 yes yes no 117 0
KUFRRX+CMMI10 Type 1 yes yes no 181 0
AIGLQZ+DejaVuSans CID TrueType yes yes yes 183 0
@theonewolf
theonewolf / run_hyperfind.sh
Created January 6, 2014 21:23
Running Hyperfind Commandline
#!/bin/bash
java -jar hyperfind/hyperfind.jar \
/usr/local/share/diamond/predicates:/usr/local/share/diamond/codecs \
/usr/local/share/diamond/filters
@theonewolf
theonewolf / expected_output.log
Last active January 2, 2016 04:08
Regex searching for network configuration state
grep '128\.\|monsoon\|127\.\|localhost' * -R 2> /dev/null
test.txt:128.213.1.15
test.txt:localhost
test.txt:monsoon.elijah.cs.cmu.edu
test.txt:127.0.0.1
test.txt:127.0.1.1
@theonewolf
theonewolf / README.md
Last active January 1, 2016 21:19 — forked from anonymous/README.md
  • Execute Java with something like: javac Test.java; java Test
  • The comments are valuable feedback in interpreting lines of Java code and understanding what they do
  • The output of the program discusses why certain things are occurring, and offers ideas on answering the question
  • My (attempt at a) final answer: This is just a defensive programming technique, meant for programmers. It doesn't technically do anything, and is just a "best practice" convention to follow when assigning values to float-typed variables
@theonewolf
theonewolf / bandwidth.log
Last active December 31, 2015 04:49
logs of BW and latency tests
78
96
100
114
125
135
163
176
181
193
@theonewolf
theonewolf / dd_read_test.log
Created December 8, 2013 21:31
ceph read test
sudo strace -p 1238 -r
sudo: unable to resolve host test-ceph-bw
Process 1238 attached - interrupt to quit
0.000000 write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304
0.000472 read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304
0.622269 write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304
0.000211 read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304
0.658587 write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304
0.000153 read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4194304) = 4194304
@theonewolf
theonewolf / command.log
Last active December 30, 2015 12:29
packet logging test
iptables -t filter -I INPUT 1 -p tcp --dport 1928 -j LOG --log-prefix 'gabriel: ' --log-level 4 --log-tcp-sequence
# might need to use chain FORWARD, unsure
# probably use prefixes to differentiate packets