Muffinresearch Labs by Stuart Colville

Search Django Snippets with GreaseMonkey | Comments (0)

Posted in Code on 8th July 2008, 8:05 am by Stuart

I was looking around DjangoSnippets.org last night and had been using the “site: djangosnippets.org” in google to be able to search the site. To make life easier I’ve knocked up a noddy greasemonkey script to provide a basic Google powered search box (in the header) across DjangoSnippets.org.

It goes without saying you’ll need Greasemonkey installed. Once you have Greasemonkey, clicking the following link should prompt GreaseMonkey to ask you if you want to install the script: Install django_snippets_search.user.js

Post Tools

Comments: Add yours







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Ubuntu: add-apt-repository: command not found|(2)

When you’re using a minimal Ubuntu install if you find the ‘add-apt-repository’ command is missing (it’s useful for adding PPAs and other repositories), then simply run:

sudo apt-get install python-software-properties

Photos on Flickr

© Copyright 2004-12 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.490s.