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
var http = require('http'); | |
var child_process = require('child_process'); | |
function poll(url, cb) { | |
http.get(url, function(res) { | |
var body = ""; | |
res.setEncoding('utf8'); | |
res.on('data', function(data) { | |
body += data; | |
}); |
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
--- twobit.hs.orig 2012-07-05 00:24:21.399187088 +0200 | |
+++ twobit.hs 2012-07-05 00:38:06.288433147 +0200 | |
@@ -1,3 +1,4 @@ | |
+{-# LANGUAGE OverloadedStrings #-} | |
import System.IO | |
import Data.Char | |
import System.Environment | |
@@ -9,7 +10,7 @@ | |
deriving (Show) | |
data V = Fun (V -> V) |
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
prittorrent=> explain analyze select * from feed_items inner join enclosures on (feed_items.feed=enclosures.feed AND feed_items.id=enclosures.item) inner join enclosure_torrents using (url) order by feed_items.published desc limit 17; | |
QUERY PLAN | |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Limit (cost=0.00..465.69 rows=17 width=1049) (actual time=0.043..0.597 rows=17 loops=1) | |
-> Nested Loop (cost=0.00..1807.98 rows=66 width=1049) (actual time=0.043..0.593 rows=17 loops=1) | |
-> Nested Loop (cost=0.00..1782.72 rows=66 width=1020) (actual time=0.025..0.379 rows=17 loops=1) | |
-> Index Scan Backward using feed_items_published on feed_items (cost=0.00..1035.62 rows=1560 width=873) (actual time=0.004..0.016 rows=17 |
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 slide 22 of http://www.fischmarkt.de/2010/05/very_high_performance_websites_the_next.html Many of these can be checked with the YSlow Firebug extension. | |
* Make fewer HTTP requests | |
* Use a Content Delivery Network (CDN) | |
* Add Expires headers | |
* Compress components with gzip | |
* Put CSS at top | |
* Put JavaScript at bottom | |
* Avoid CSS expressions | |
* Make JavaScript and CSS external |
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
<iq type="set" from="track.superfeedr.com" to="firehoser.superfeedr.com" id="Component-871949090"> | |
<feed xmlns="http://superfeedr.com/xmpp-superfeedr-ext" id="8282637"> | |
<url>http://superfeedr.com/track/movie</url> | |
</feed> | |
<pubsub xmlns="http://jabber.org/protocol/pubsub"> | |
<publish node="8282637"> | |
<item> | |
<entry xmlns:geo="http://www.georss.org/georss" xmlns:as="http://activitystrea.ms/spec/1.0/" xmlns:sf="http://superfeedr.com/xmpp-pubsub-ext" xmlns="http://www.w3.org/2005/Atom"> | |
<id>http://loveleader.tumblr.com/post/749928806</id> | |
<published>2010-06-29T15:19:33+00:00</published> |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<feed s:id="8310107" xmlns="http://www.w3.org/2005/Atom" xmlns:s="http://superfeedr.com/xmpp-superfeedr-ext"> | |
<link rel="self" href="http://superfeedr.com/dummy.xml"/> | |
<http_code xmlns="http://superfeedr.com/xmpp-superfeedr-ext">200</http_code> | |
<last_modified xmlns="http://superfeedr.com/xmpp-superfeedr-ext">2010-05-24T22:40:56+00:00</last_modified> | |
<etag xmlns="http://superfeedr.com/xmpp-superfeedr-ext">"c1af683416ed8cd5852678a5b2840dd5"</etag> | |
<number_of_new_entries xmlns="http://superfeedr.com/xmpp-superfeedr-ext">1</number_of_new_entries> | |
<last_error_message xmlns="http://superfeedr.com/xmpp-superfeedr-ext">7726B in 0.030275s, 1 new entries</last_error_message> | |
<last_fetch xmlns="http://superfeedr.com/xmpp-superfeedr-ext">2010-05-24T22:40:56Z</last_fetch> | |
<title>The Dummy Time Feed</title> |
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
cave@storage:~$ /root/riak/rel/riak/bin/riak console | |
Exec: /root/riak/rel/riak/erts-5.7.5/bin/erlexec -boot /root/riak/rel/riak/releases/0.10.1/riak -embedded -config /root/riak/rel/riak/etc/app.config -args_file /root/riak/rel/riak/etc/vm.args -- console | |
Root: /root/riak/rel/riak | |
Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:5] [kernel-poll:true] | |
** Found 0 name clashes in code paths | |
=INFO REPORT==== 6-May-2010::22:18:27 === | |
alarm_handler: {set,{system_memory_high_watermark,[]}} |
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
-- |Based on http://cvs.silcnet.org/source/lib/silccrypt/silchash.c#L438 | |
module BubblePrint where | |
import Data.Char (ord, chr) | |
import Data.Bits ((.&.), shiftR) | |
import Prelude hiding ((>>), (/)) | |
(&) = (.&.) | |
(>>) = shiftR | |
(%) = mod |