Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Expand globs to null when there are no matches
shopt -s nullglob
# Look for either a '<subdir>/console' or a 'symfony' file
until
file=(*/console symfony); [[ -f "$file" ]] && php "$file" "$@" && exit;
do
[[ "$PWD" == "/" ]] && break;
@mikemorris
mikemorris / keysearch.json
Created February 16, 2012 17:42
KeySearch (Safari extension) Keywords
[
{
"enabled": true,
"keyword": "w",
"name": "Wikipedia",
"url": "http://en.wikipedia.org/w/index.php?search=@@@",
"shortcut": ""
},
{
"keyword": "default",