Bash Current Directory Path

Gives you the full directory name of the script no matter where it is being called from.

Github Gist


Add browser and device name to WordPress body class

Github Gist


Recursively List Video Files URL’s

This will recursively list video files (currently filtered by a ‘.mp4’ preg_match) links when put at the root of a url. Rough and not pretty but it’s functional. Github Gist