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
Test Javascript Synax
Test your javascript for bugs by copying and pasting your code below.
Force String to Lower or Upper Case
JavaScript has built in methods to manipulate strings making this task easy. You can call the toLowerCase() or toUpperCase() on the string directly. Make a
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
How to get a Summary of Every File Type in a Folder at the Command Line
This command will work on Linux and MacOS. Here we’re running it on our downloads folder to get a summary of every type of file
Moving Your Git Project to GitHub
From the root of your current project run this command. That’s it!