This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do nc -l -p 8081 -q 1 < <(echo "<html><body><ul>"`cat /etc/nginx/sites-enabled/shithouse | grep server_name | awk '{print $2}' | sed 's/;//g' | sed 's/\(.*\)/<li><a href="http:\/\/\1">\1<\/a><\/li>/g'`"</ul></body></html>"); done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(merveilles_io)(master) | |
λ:~/src/metaforcefeed dig aquameta.org @8.8.8.8 | |
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> aquameta.org @8.8.8.8 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59660 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from django_snailtracker_action as ac | |
join django_snailtracker_snailtrack as st on st.id = ac.snailtrack_id | |
join django_content_type as ct on st.content_type_id = ct.id | |
where ct.model = 'supplier' and '"invoiced"' in (select value::text from json_array_elements(columns_changed::json)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(master) | |
λ:~/src/project-oleg ./run_server.sh | |
./run_server.sh: 9: [: run_server.sh: unexpected operator | |
# blah blah blah |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From the oleg source directory: | |
export LD_LIBRARY_PATH=./build/lib:$LD_LIBRARY_PATH | |
valgrind --leak-check=full ./build/bin/oleg_test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tests performed on a stock FX-8350 | |
# Data was put into each DB with `curl -X POST -d 'testdata' <url>` | |
# golegd frontend: | |
λ:~/src/wrk ./wrk -t8 -c400 -d30s http://localhost:8081/test/test | |
Running 30s test @ http://localhost:8081/test/test | |
8 threads and 400 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 8.83ms 4.87ms 221.73ms 94.33% | |
Req/Sec 6.01k 1.16k 17.20k 79.29% | |
1373370 requests in 30.00s, 172.89MB read |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.messages.storage import default_storage | |
class MessagesSuck(object): | |
""" | |
Shoots django messages in the face. | |
""" | |
def process_request(self, request): | |
# Confuse django message, mezzanine and friends into | |
# assuming we still work: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "static/less/variables-mixins.less"; | |
@import "static/less/fonts.less"; | |
.packery { | |
.row { | |
margin-bottom: 12px; | |
.item { | |
margin-right: 12px; | |
&: first-child { margin-left: 13px; } | |
.item-content{ min-height: 392px; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-04-09 12:31:09 Hamcha I'd do it myself but I haven't understood the API well | |
2014-04-09 12:31:22 Hamcha having "jars" and things like that didn't help | |
2014-04-09 12:31:40 @Wally Hamcha: Yeah I admit it's probably not the most accessible API | |
2014-04-09 12:31:40 Hamcha especially when the documentation goes "It's hard to piss in 51 jars" as an explaination of the concept of jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) print *original_bucket->next->next | |
$9 = {expiration = 0x4141414141414141, key = 'A' <repeats 250 times>, | |
klen = 4702111234474983745, | |
content_type = 0x4141414141414141 <error: Cannot access memory at address 0x4141414141414141>, ctype_size = 4702111234474983745, | |
data_ptr = 0x4141414141414141 <error: Cannot access memory at address 0x4141414141414141>, data_size = 4702111234474983745, hash = 1094795585, | |
next = 0x4141414141414141} | |
(gdb) |