OSX shell test IP for validity

A simple script to test if a given IP address is valid. Using it in .sh scripts in Mac OS X.

 

AngularJS UI-Router URL renaming / beautify ui-sref

For making URLs nicer, it’s possible to write your own beautifier with intercepting the AngularJS ui-router. In my case, I wanted to get rid of the spaces and replace them by dashes.

Register a custom type that transforms the… Continue Reading