Archive

Archive for the ‘shell scripts’ Category

Quickie: Running a Controller action from a script in LightVC

September 29th, 2010 Richard Pistole No comments

Create scripts/test_action.php in your LVC app:
http://pastie.org/1190014

Excitin’.

Just be aware you’re running things from the command line, and the usual caveats with respect to running PHP CLI apply (superglobals, etc).

Categories: programming, shell scripts Tags:

A little TextMate black magic

August 19th, 2010 Richard Pistole No comments

I do most of my code editing in TextMate in OSX.

However my current code environment consists of a CentOS VM running under parallels.

I have my linux home directory mounted via SMB in OSX, but I like to do a lot of poking around on the files from the shell on the VM.

So, here’s a shell script to let me open files in TextMate from the VM:

#!/bin/tcsh
set f="`pwd`/$*"
set f="$f:s./home/pistole./Volumes/pistole/."
ssh wrath open -a /Applications/TextMate.app "$f"
Categories: programming, shell scripts Tags: