Command line Fu

Summary of memcached commands as used through telnet

The two main things to do with a memcached cluster is getting a key and setting a key to a value. Below are examples of this, with parameters explained (something most examples miss for some reason?). Examples Connect to memcached: telnet [hostname] [port] telnet localhost 11211telnet localhost 11211 Getting a key: get [key] get foo …

Summary of memcached commands as used through telnet Read More »

Installing nginx on Mac with pcre library

To build nginx on Mac OS X Snow Leopard, I use the following options to configure ./configure –with-ld-opt="-L/usr/local/lib" –with-cc-opt="-I/usr/local/include"./configure –with-ld-opt="-L/usr/local/lib" –with-cc-opt="-I/usr/local/include" If the ld and cc options are not given, it results in an error reported in a ticket on the nginx trac. Notice that the is no space between -L and /usr/local/lib and likewise …

Installing nginx on Mac with pcre library Read More »

Import OSM data into PostGIS using Osmosis

This blog post is made as a “note-to-self” so that I can remember the procedure. You are of course welcome to read along. It’s does nothing fancy, simply imports the planet.osm file into PostGIS using Osmosis with the Snapshot Schema. Step by step Assuming Osmosis is installed (if not download osmosis), and a planet.osm file …

Import OSM data into PostGIS using Osmosis Read More »