Skip to content

Instantly share code, notes, and snippets.

View mauzeh's full-sized avatar

Maurits Dekkers mauzeh

View GitHub Profile
@mauzeh
mauzeh / JobExtension.php
Created November 25, 2013 23:33
Code sample of Symfony2 project
<?php
/**
* You are currently viewing a code sample from a live Symfony2 project,
* developed by Maurits Dekkers (bluedackers@gmail.com).
*
* The app is a workflow management tool for organic groups of linguists.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for NON-COMMERCIAL purposes and without fee is hereby granted
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;