Passing arbitrary parameters to a route in symfony

Parameters are an important parts of routes in symfony, and in any other routing framework for that matter, and everyone knows how to add mandatory or optional parameters to a route. But did you know you can also silently pass arbitrary parameters to a route from the routing definitions ? This may...

Mass vim file opening reloaded

Thinking about it, the snippet I posted earlier was a bit silly as vim can open by itself multiple files way more efficiently. The only benefit from my script is that I don't have to type the --servername and --remote-silent-tab. So let's add some usefulness ! First, when I need this script, it's...

Mass vim file opening 1

Remember my old post about vim and rox-filer ? Well I've got one tiny and silly addition to it now, I can mass open files from any shell command line, with this little script placed in my ~/bin/ (don't forget to chmod +x): for i in $*; do /usr/bin/gvim --servername ash0 --remote-silent-tab $i sleep...

Rename directories to lowercase 2

Using a single (and somewhat simple) shell line, you can rename any directory to its lowercase version. for i in *; do lcase=`echo $i | tr A-Z a-z`; if [ ! -d $lcase ]; then mv $i $lcase; fi; done; Viva el chell !...

Top tags