This file contains 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
#!/usr/bin/perl -w | |
use strict; | |
# Copyright 2008, Andrew Ross [email protected] | |
# Distributable under the terms of the GNU GPL, see COPYING for details | |
# | |
# 25-10-2011 [email protected] -- Support android NDK r6. Changes | |
# - Directory in /usr/local/android-ndk symlink to /usr/local/android-ndk-r6 | |
# - change arm-eabi-agcc to arm-linux-androideabi-gcc |
This file contains 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
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
Read 4K randomly from SSD 150,000 ns 0.15 ms | |
Read 1 MB sequentially from memory 250,000 ns 0.25 ms | |
Round trip within same datacenter 500,000 ns 0.5 ms |
This file contains 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
// C libraries print the file size. | |
// well, except glibc, that always prints 0. | |
#include <stdio.h> | |
int main(void) | |
{ | |
FILE *fp = fopen("/tmp/aaa", "a+"); | |
printf("%ld\n", ftell(fp)); | |
fputc('x', fp); |
This file contains 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
--- lazyload_images_filter.cc.orig 2012-08-02 15:29:47.000000000 -0700 | |
+++ lazyload_images_filter.cc 2012-08-02 15:30:10.000000000 -0700 | |
@@ -44,10 +44,9 @@ | |
} // namespace | |
-// base64 encoding of a blank 1x1 gif with GIF comment "PSA". | |
-const char* LazyloadImagesFilter::kBlankImageSrc = "data:image/gif;base64" | |
- ",R0lGODlhAQABAIAAAP///////yH+A1BTQQAsAAAAAAEAAQAAAgJEAQA7"; | |
- |
This file contains 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
#! /usr/bin/env ruby | |
require 'time' | |
VPN_SERVER = '67.215.68.68' | |
LAST_STATE = :s8 | |
class Client | |
attr_reader :last_ts, :states, :done, :client_ip | |
This file contains 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
[12:23:13.491][MQSessionManager.m:287] | |
[SESSION MANAGER] Launching login request [email protected], *mypassword* | |
[12:23:14.113][MQCredentialsManager.m:104] | |
--> credential manager storing username [email protected] and password *mypassword* |
This file contains 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
errorcode=1102, code=200, success=false, time=524, NSErrorFailingURLStringKey=https://fbprod.flipboard.com/v1/users/xauthLogin/5235?udid=676b4caaed1ed74edce5c117f0323d170896708d&tuuid=DAA54AA1-576C-47E4-89DA-406FF15B9602&userid=5235&ver=1.9.2&device=ipad-5.1.1&lang=en&locale=en_US&username=myusername&loginService=instapaper&password=mypassword, errormessage=auth failed: myusername, NSLocalizedDescription=auth failed: myusername} |
This file contains 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
$ drill ns sy. @sy.cctld.authdns.ripe.net | |
sy. 86400 IN NS sy.cctld.authdns.ripe.net. | |
sy. 86400 IN NS ns1.tld.sy. | |
sy. 86400 IN NS ns2.tld.sy. | |
$ drill ns sy. @208.67.222.222 | |
sy. 170339 IN NS ns2.tld.sy. | |
sy. 170339 IN NS sy.cctld.authdns.ripe.net. | |
sy. 170339 IN NS ns1.tld.sy. |
This file contains 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
diff --git a/opendnscache/lib-opendnscache/fdevent_kqueue.c b/opendnscache/lib-opendnscache/fdevent_kqueue.c | |
index df3d645..f77c015 100644 | |
--- a/opendnscache/lib-opendnscache/fdevent_kqueue.c | |
+++ b/opendnscache/lib-opendnscache/fdevent_kqueue.c | |
@@ -92,7 +92,7 @@ fdevent_wait(int64_t deadline, int64_t now) | |
timeout = 0; | |
} | |
timeout_ts.tv_sec = timeout / 1000; | |
- timeout_ts.tv_nsec = timeout % 1000; | |
+ timeout_ts.tv_nsec = (timeout % 1000) * 1000000; |
This file contains 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
<img src=image.gif> |