Skip to content

Instantly share code, notes, and snippets.

@4poc
4poc / pacman (< 3.5!!!)
Created March 9, 2011 06:56
Slow Pacman Workaround(< 3.5!!!)
This is obsolete with the new pacman version 3.5!
Pacman (arch linux) uses a file based database with a lot
of small files. Some filesystems are awfully slow when
accessing lots of small files, in general this is not
that great of a deal because most of the applications
store their information with more sense. Pacman doesn't
care (it is a long well known problem), which means that
sometimes you have to wait minutes before a search query
completes (pacman -Ss).
#!/bin/bash
#
# http://wiki.videolan.org/VLC_command-line_help
# http://wiki.videolan.org/Documentation:Modules/screen
# http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API
# StreamKey: http://www.justin.tv/broadcast/adv_other
#
cvlc screen:// \
--screen-width 1356 \
@4poc
4poc / gist:837530
Created February 21, 2011 19:07
HTTP Caching Cheat Sheet
1. Last-Modified
Server->Client: Last-Modified: Mon, 21 Feb 2011 ... (200)
Client->Server: If-Modified-Since: Mon, 21 Feb 2011 ... (200/304)
2. ETag
Server->Client: ETag: 123456654321 (200)
Client->Server: If-None-Match: 123456654321 (200/304)
@4poc
4poc / gist:835763
Created February 20, 2011 06:13
pubsub scribble / debug server
protocol specification: http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.3.html
test feed: http://apubtest.wordpress.com/feed/ (atom)
hub: <atom:link rel='hub' href='http://apubtest.wordpress.com/?pushpress=hub'/>
-> http://apubtest.wordpress.com/?pushpress=hub
topic/self: <atom:link href="http://apubtest.wordpress.com/feed/" rel="self" type="application/rss+xml" />
-> http://apubtest.wordpress.com/feed/