Skip to content

Instantly share code, notes, and snippets.

View kyleterry's full-sized avatar

Kyle Terry kyleterry

View GitHub Profile
[ OK kyle@nebula:~ ]
$ nmap -Pn www.cutterbuck.com
Starting Nmap 6.40 ( http://nmap.org ) at 2014-04-02 13:19 PDT
Stats: 0:00:00 elapsed; 0 hosts completed (0 up), 0 undergoing Host Discovery
Parallel DNS resolution of 1 host. Timing: About 0.00% done
Nmap scan report for www.cutterbuck.com (69.25.142.33)
Host is up (0.017s latency).
Not shown: 52 filtered ports
PORT STATE SERVICE
3/tcp open compressnet
$ mysql.server start
Starting MySQL
..........................................................................................
....
.
now() {
file="$HOME/.now"
if [ ! -f $file ]; then
touch $file
fi
if [[ -z $@ ]]; then
today="$(date "+%Y-%m-%d")"
grep --color=never $today $file | cut -d' ' -f2-
else
stamp="$(date "+%Y-%m-%d %H:%M:%S")"
-O2:
real 0m7.613s
user 0m4.020s
sys 0m0.570s
-O3:
real 0m7.617s
user 0m4.030s
sys 0m0.570s
[ OK kyle@nebula:~/src/personal/Project-Oleg ]
[ [git:master] ]
$ make
gcc -std=gnu99 -Wall -Werror -g3 -O2 -I./include -I/usr/local/Cellar/erlang/R16B03/lib/erlang/usr/include/ -I/usr/local/Cellar/erlang/R16B03/lib/erlang/lib/erl_interface-3.7.15/include/ -c -fPIC src/murmur3.c
gcc -std=gnu99 -Wall -Werror -g3 -O2 -I./include -I/usr/local/Cellar/erlang/R16B03/lib/erlang/usr/include/ -I/usr/local/Cellar/erlang/R16B03/lib/erlang/lib/erl_interface-3.7.15/include/ -c -fPIC src/oleg.c
gcc -std=gnu99 -Wall -Werror -g3 -O2 -I./include -I/usr/local/Cellar/erlang/R16B03/lib/erlang/usr/include/ -I/usr/local/Cellar/erlang/R16B03/lib/erlang/lib/erl_interface-3.7.15/include/ -c -fPIC src/dump.c
gcc -std=gnu99 -Wall -Werror -g3 -O2 -I./include -I/usr/local/Cellar/erlang/R16B03/lib/erlang/usr/include/ -I/usr/local/Cellar/erlang/R16B03/lib/erlang/lib/erl_interface-3.7.15/include/ -c -fPIC src/logging.c
gcc -std=gnu99 -Wall -Werror -g3 -O2 -I./include -I/usr/local/Cellar/erlang/R16B03/lib/erlang/usr/include/ -I/usr/local/Ce
<!doctype html>
<html>
<head>
<title>Kyle Terry: Entropy Meter is at 45%</title>
<style type="text/css">
body {
font-family: helvetica;
}
</style>
</head>
[ OK kyle@insomnia:~ ]
$ curl -vvvv -X POST -d 'testing' http://localhost:8080/test --header "Content-Type: text/html"
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 8080 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> POST /test HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8080
$ valgrind ./build/bin/oleg_test test
==18015== Memcheck, a memory error detector
==18015== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==18015== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==18015== Command: ./build/bin/oleg_test test
==18015==
valgrind: Fatal error at startup: a function redirection
valgrind: which is mandatory for this platform-tool combination
valgrind: cannot be set up. Details of the redirection are:
kyle@little-01:~$ tenyks /etc/tenyks/settings.py
Traceback (most recent call last):
File "/usr/local/bin/tenyks", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2823, in <module>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 710, in subscribe
callback(dist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2823, in <lambda>
add_activation_listener(lambda dist: dist.activate())
Breakpoint 1, test_jar () at ./src/test.c:57
57 int test_jar() {
(gdb) l
52 ol_log_msg(LOG_INFO, "Generated max is: %i", expected_bucket_max);
53 ol_close(db);
54 return 0;
55 }
56
57 int test_jar() {
58 ol_database *db = ol_open(DB_PATH, DB_NAME, OL_SLAUGHTER_DIR);