Find files with matching content in Linux/Debian/Mac

Sometimes you have need to find all files with certain words in them.  If you’re on Linux/Debian/Mac, you can run a really simple command to find them! That command is “grep”. Here’s an example that recursively searches subfolders for “set groups node1” grep -iR ‘set groups node1’ * Here is the output:

Serial Port to Named Pipe in VMware Fusion

If you need to be able to input information to a serial port in VMware Fusion, it can be a royal pain. I tried to gather all of the info I could to help those with VMware Fusion view serial port information. Programs to install: XCode (updated) (Link) XCode Command Line Developer Tools (link) Macports … Continue Reading

Split large text files in Mac/Nix

Lets say you have a file full of passwords that is 62,000 lines and you want to chop the file into bite-sized pieces. There is an easy terminal command to help you with that! To split into multiple 1000 line files with a prefix of “SPLAT” here is the command: split -l 1000 textfile.txt SPLAT

Update $PATH variable on Mac Permanently

If you’re a developer or you commonly run apps from directory locations other than the default Mac locations, you probably hate typing out the full directory when running the app or script. To update the $PATH variable within the Terminal you just need to type: export PATH=/new/path:$PATH To update the $PATH variable PERMANENTLY you just … Continue Reading

Install ownCloud on a Mac Mini Server

So, I now have my own cloud storage solution!  I installed an ownCloud server on my colocated Mac Mini in Atlanta today. The install process is super easy on a mac: Create a website using server use https if possible allow .htaccess in advanced settings Download ownCloud server for mac (http://owncloud.org/support/install/) Unzip and untar the … Continue Reading

Port Forward VMware Fusion 4 NAT

You probably already know how awesome having a server/device in VMware fusion can be.  But did you know that VMware can automatically port forward to your NAT devices?  Here’s how: Open up a Terminal Window

Edit File Under [incomingtcp] add in

Clear DNS Cache on a Mac (OS X)

If you’re ever messing with DNS records, you may run into times when you have stale entries in your DNS Cache. Here’s you how clear your cache in Mac OS X: dscacheutil -flushcache

Add SSH2 PHP Extension to Mountain Lion Server

If you’re running MAMP on Mountain Lion Server OS X you’ve probably noticed a few missing PHP extensions. Here’s a quick way to install the SSH2 extension: Download libssh2-1.4.2.tar.gz Download the latest SSH2 PECL from http://pecl.php.net/package/ssh2 Untar and gzip both packages in your download folder Compile libssh

Compile SSH2

Copy ssh2.so to your PHP extension_dir … Continue Reading

Sign PDFs with a Mac

Did you know you can sign PDFs and documents digitally with a Mac?  If you own a Mac running OS X Lion, you don’t need to print out another PDF just to sign your name again! First you’ll need to create your signature: Open the Preview App From the Menubar, select Preview -> Preferences Click … Continue Reading