A few creative ways to use the find shell command. Case insensitively look for a file named your_file_name.txt Using wild cards – Case insensitively look
Command to Find Which Shell I’m Currently Using
This will work on any linux/unix variety and mac os. Output will look something like this. -bash
Perl Script to Get CPU Percent Used
Found this old perl script in my scratch scripts to get the current CPU load on Linux. Perls been replaced with Python for most of
Replace Everything Inside Two Strings
Using the built in PHP regex function preg_replace and property encoding the two strings you’re searching for with preg_quote you can remove all of the
Strip Image EXIF Data
Many times you’ll want to remove the meta data on user uploaded images to your website. The meta data automatically saved to the images can
Force String to Lower or Upper Case
What Are My Browser Headers?
Your browser sends headers with every request made to a http server on the internet. Things like what your user agent is, your language preferences,
Sort Query By Length of String
We’ll be using the MySQL built-in function char_length to demonstrate how to filter and sort based on a size of a columns width in characters.
Hide and Show and Element Using JQuery
You have a div tag you want to hide with the id “myElementID”. You want to show that same div again. Don’t forget to include