Sublime Text and Cygwin

May 21, 2015

Quickie shell script to use sublime as your editor in cygwin Create ~/bin/subl #!/bin/bash /cygdrive/c/Program\ Files/Sublime\ Text\ 3/subl.exe cygpath -wa “$*” You may want to add the -w flag if you want to use it as your commit message editor for git/svn/hg/etc, which will cause it to wait until you save and close the file […]

Comments Off on Sublime Text and Cygwin

VCVars for Cygwin and Visual Studio 2013

May 20, 2015

I’m a unixy guy working on a .NET codebase, and while I can’t get away from Visual Studio completely, I do like to be able to run msbuild from a cygwin shell. Converting the MS supplied VCVARS.BAT file to something bash could understand was a bit of a PITA and I don’t want to have […]

Comments Off on VCVars for Cygwin and Visual Studio 2013

Quickie: Running a Controller action from a script in LightVC

September 29, 2010

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).

Comments Off on Quickie: Running a Controller action from a script in LightVC

A little TextMate black magic

August 19, 2010

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, […]

Comments Off on A little TextMate black magic