Skip to content

Instantly share code, notes, and snippets.

View qpfiffer's full-sized avatar
🔚

Quinlan Pfiffer qpfiffer

🔚
View GitHub Profile
LQuinze: get a wok
LQuinze: or some other suitably multi-purpose cookware
LQuinze: you might need to get a flat bottom one if you don't have a wok ring on your stove
LQuinze: if you buy stainless steel just treat it like any other cookware - line it with some cooking oil every time you cook with it, and wash it with soap after
LQuinze: if you buy a traditional carbon steel one, you'll need to season it. Scrub it hard with soap, steel wool, and get all the factory machine oil off. Then dry it off, pour some oil in, open up a window/turn on a vent, and heat the oil in it, tilting the wok to let the oil go all over
LQuinze: this may take some time and may need extra oil; you want to discolour the whole thing. The oil seeps into the carbon steel and gives it a non stick coating - don't wash this wok with soap ever, but rinse it off with hot water and a paper towel after cooking with it
LQuinze: any bacterial growth on it will be killed by the high heat you are using with a wok
LQuinze: after that it's just a matt
# With deferred unlock on unjar:
./wrk -t2 -c400 -d10s http://localhost:38080/x/x
Running 10s test @ http://localhost:38080/x/x
2 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.75s 1.15s 4.63s 80.96%
Req/Sec 47.23 23.61 95.00 69.23%
898 requests in 10.02s, 105.23KB read
Socket errors: connect 0, read 0, write 0, timeout 669
Requests/sec: 89.63
$ olegdb -config olegdb.conf
2015/01/13 02:52:02 Starting server...
2015/01/13 02:52:02 Listening on http://localhost:38080
Jan 13 02:52:06 [-] Have 2987 orphans to take care of.
Jan 13 02:52:06 [-] We now have 0 orphans not accounted for.
Jan 13 02:52:06 [x] (src/file.c:59: errno: Resource temporarily unavailable) Could not lock values file.
Jan 13 02:52:06 [x] (src/oleg.c:93: errno: None) Could not open values file.
2015/01/13 02:52:06 http: panic serving 127.0.0.1:38899: runtime error: invalid memory address or nil pointer dereference
goroutine 6 [running]:
net/http.func·009()
λ:~/src/OlegDB curl -0 -v localhost:38080/waifu/webm/_match
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 38080 (#0)
> GET /waifu/webm/_match HTTP/1.0
> User-Agent: curl/7.35.0
> Host: localhost:38080
> Accept: */*
>
* HTTP 1.0, assume close after body
Breakpoint 2, add_image_to_db (file_path=0x7fffffffd6a0 "./webms/a/348046_ieiei.webm", filename=0x7fffffffd72b "348046_ieiei.webm", board=0x7fffffffd8e0 "a")
at src/db.c:221
221 char image_hash[HASH_IMAGE_STR_SIZE] = {0};
(gdb) print board
$9 = 0x7fffffffd8e0 "a"
(gdb) n
222 if (!hash_image(file_path, image_hash))
(gdb) print board
$10 = 0x7fffffffd8e0 "a"
(gdb) n
@qpfiffer
qpfiffer / dp_171.c
Created December 25, 2014 19:11
Daily programmer #171 attempt
#include <string.h>
static const char encoding[] = {
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,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xA,
0,0,0,0,0,0,0,
0xB, 0xC, 0xD, 0xE, 0xF, 0x10, 0x11, 0x12, 0x13,
--- !clarkevans.com/^invoice
invoice: 34843
date : 2001-01-23
bill-to: &id001 {
given : Chris
family : Dumars
address" {
lines: |
458 Walkman Dr.
Suite #292
@qpfiffer
qpfiffer / fib.den
Created December 3, 2014 19:08
Possible Fibonacci in Den.
fibonacci x
? >= n 1
: + (fibonacci (- n 1)) (fibonacci (- n 2))
: 1
! fibonacci 10 # Returns 144
λ:~/src/waifu.xyz ./greshunkel_test
<html>
<body>
<span>This is the real TrIcKy 1</span>
<p>This is a regular string: This is a test.</p>
<p>This is an integer: 666</p>
</body>
</html>
BeautifulSoup==3.2.1
Django==1.4.2
Fabric==1.4.2
MySQL-python==1.2.3
PIL==1.1.7
South==0.7.5
akismet==0.2.0
amqp==1.0.13
amqplib==1.0.2
anyjson==0.3.3