Find your jQuery version
Sometimes the version number of a referenced jQuery library isn’t readily available in the script src or minified code comments. Here are a few statements to plug in to your browser’s developer console…
//recommended
jQuery.prototype.jquery
//or use
jQuery.fn.jquery
//assumes no dollar sign conflict
$.fn.jquery
Convert Case of Files and Folders
I’m working with a large data set with uppercase and lowercase filenames and folders. I needed a quick way to execute a recursive rename and here’s the shell scripting I used:
Create the following two files in /usr/local/bin
“lcase”
“ucase”
Still in /usr/local/bin, now add execute permissions for all.
Now navigate to your parent directory that contains all your files and folders.
Execute this command for converting all files and folders to lowercase:
Execute this command for converting all files and folders to uppercase:
Success! Your files and folders have been renamed.
Remove OS X Software Update CatalogURL
I use a MacBook Pro provided by my employer and they redirect update requests to their own Software Update Server by default.
To get around this, I execute the following line in Terminal:
