Category Archive: Unix

Aug 26

Yet Another OSX Yosemite Wifi / Bluetooth Connectivity Fix

Some users have problems with OSX Mavericks/Yosemite wifi connectivity – there’s all sorts of things that can go wrong. This stackexchange thread has a variety of solutions that you should probably try. Did you reset your SMC, NVRAM, and a dozen other fixes as recommended from that thread? Yeah? Still have a problem? Me too. …

Continue reading »

Feb 12

fix2x.sh – automatically create/resize @2x and non-@2x images for IOS

I’ve put together a quick bash script to automatically generate @2x and non-@2x images for IOS. The script looks through a directory, auto creates missing @2x or non-@2x files, and auto resizes the non-@2x files. Instructions: Download fix2x.sh from the Coder Cowboy Scripts GitHub Repo Copy the script to a directory Copy your original .png …

Continue reading »

Oct 09

Custom OSX log file rotation / archiving

This is an updated/edited version of an article I posted years ago on World’s Worst Software. Custom Log File Rotation In OSX It’s not easy to figure out how to configure OSX’s internal periodic tasks. I googled around a bit for info on integrating your own log rotation scheme into OSX’s existing scheduled tasks, but …

Continue reading »

Aug 15

TortoiseSVN not importing some files? Fix your permissions.

If TortoiseSVN (or SVN in general) seems to be skipping over some files when importing a project, there are a couple of causes to be careful of. First, make sure your permissions are set correctly, I just do the following in a dos box (after installing cygwin, of course..) in my project folder before import: …

Continue reading »

Jul 31

Stopping Axis2 in unix

If you’re having trouble killing axis2 via a init.d script or otherwise on unix, just do this: AXIS2_CHILD_PID=`ps aux | egrep "axis2server.sh|SimpleAxis2Server" | grep -v "egrep" | awk '{print $2;}'` echo "Killing stubborn AXIS2 child process that won't die with parent.. pid is ${AXIS2_CHILD_PID}" kill ${AXIS2_CHILD_PID} >/dev/null 2>&1 && echo OK || echo "failed, what …

Continue reading »

Jul 07

How to excel at bash scripting

The trick to being good at bash scripting is to realize that nobody in their right mind would ever want to write bash scripts, but someone has to.

Feb 16

The Beauty of &&

I’m a big fan of bash. The first thing I do on any windows computer is install another browser, and the second thing I do is install cygwin. Cygwin gives me bash on windows, and fortunately on macs, OS X is based on unix, so bash is already there. Don’t get me wrong, I’m not …

Continue reading »