Skip to content

Instantly share code, notes, and snippets.

#! /bin/sh
### BEGIN INIT INFO
# Provides: php-fastcgi
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop php-cgi in external FASTCGI mode
# Description: Start and stop php-cgi in external FASTCGI mode
### END INIT INFO
START=yes
# Which user runs PHP? (default: www-data)
EXEC_AS_USER=www-data
# Host and TCP port for FASTCGI-Listener (default: localhost:9000)
FCGI_HOST=localhost
FCGI_PORT=9000
curl -I --compressed http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js
HTTP/1.1 200 OK
Last-Modified: Mon, 29 Sep 2008 01:30:17 GMT
Content-Type: application/x-javascript; charset=UTF-8
Expires: Sun, 07 Mar 2010 03:23:10 GMT
Date: Sat, 07 Mar 2009 03:23:10 GMT
Cache-Control: public, max-age=31536000
Vary: Accept-Encoding
Content-Length: 129738
//code fragment to load jquery
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
if (typeof(jQuery) === "undefined") {
google.load("jquery", "1.2.6");
}
</script>
<script type="text/javascript">
// Safe to use jQuery at this point.
curl -I http://img.skitch.com/20090309-fssrrxyyeg9yptjhcyrixj5xne.jpg
HTTP/1.1 200 OK
Date: Sun, 15 Mar 2009 08:28:24 GMT
Server: Apache
X-Powered-By: PHP/5.2.4-2ubuntu5.5
Set-Cookie: PHPSESSID=93ccc3b23bbbff23f696b46345ac6be7; path=/; domain=skitch.com
Expires: Tue, 14 Apr 2009 08:28:24 GMT
Cache-Control: public
Pragma: public
MacOS 10.5.6
How to rebuild the Launch Services database.
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -all local,system,user
bsl0 Link encap:Ethernet HWaddr 00:1D:FE:43:DB:F5
inet addr:10.1.1.10 Bcast:10.1.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
Processor : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 498.07
Features : swp half thumb fastmult vfp edsp
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x1
CPU part : 0xc08
CPU revision : 3
Control reg : 0xc5387f
Aux control reg : 0x42
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:12311 127.0.0.1:34040 ESTABLISHED 1029/novacomd
tcp 0 0 127.0.0.1:39181 127.0.0.1:14400 ESTABLISHED 1774/PmBtEngine
tcp 0 0 127.0.0.1:34040 127.0.0.1:12311 ESTABLISHED 1029/novacomd
tcp 0 0 127.0.0.1:4445 127.0.0.1:55450 ESTABLISHED 1016/dbus-daemon
tcp 0 0 127.0.0.1:14400 127.0.0.1:39181 ESTABLISHED 1728/PmBtStack
tcp 0 0 127.0.0.1:4445 127.0.0.1:42023 ESTABLISHED 1016/dbus-daemon
tcp 0 0 127.0.0.1:55450 127.0.0.1:4445 ESTABLISHED 5557/locationadapte
tcp 0 0 127.0.0.1:42023 127.0.0.1:4445 ESTABLISHED 2068/contextupload
Ip:
16021 total packets received
0 forwarded
0 incoming packets discarded
15974 incoming packets delivered
16886 requests sent out
Icmp:
2 ICMP messages received
0 input ICMP message failed.
ICMP input histogram: