Recently I tried to replace one line with multiple lines of text using Netbeans. As much as Netbeans IDE is growing on me (having recently switched from Eclipse), I couldn’t accomplish this multi-file, multi-line replace with it (yes I know about Edit > Replace in Projects… that didn’t work). I turned to bash for a solution …
Read the rest of this entry »
If you work with git as your version control system and don’t use a GUI app in your workflow, this one liner in your ~/.profile
(or ~/.bashrc
on Linux) will display the active branch you’re working on when you cd
to a git repo path. Read the rest of this entry »
This was just too painful not to blog about. I hope this saves someone else some pain of reading sed documentation to put together a pattern to match C style header comments.
In my case I’m putting together a build script, part of it is to minify Javascript before deployment.
Read the rest of this entry »
Having recently switched to Mac OS X, I stumbled upon issues when mounting shared folders on my Macbook Pro from our linux development server. Previously, both Windows Vista and Ubuntu have had no trouble sharing a directory then mounting it from the dev server via smbfs
. This enables me (and other developers) to edit files locally which then also appear as a local files to our development server, where we run Apache / MySQL etc.
Read the rest of this entry »