Basic usage is simple, the man page doesn’t always get to the examples quickly so I thought I’d write about it for a quick reference.
Calculate a Time Difference Ago (ex: 4 hours ago)
This php function takes a timestamp and returns a detailed string of the time difference expressed in seconds, minutes, hours, days ago, or away if
Securing your Ubuntu SSH Server the Right Way
If you’ve ever managed an ssh server that’s open on the internet server you might have noticed a bunch of IPs scanning and trying to
Copy a File to Server Over SSH and Pick Up Where it Left Off
Sometimes you want to copy a single large file and have them restart where it left off if the transfer fails. Instead of using scp,
Instead of Traceroute use this: mtr
mrt is a very useful Linux command line utility for diagnosing networking problems. It’s basically of a combination of ping and traceroute in one. It’s best
How to Remove the Yellow Background Behind AdSense Ads
If you’re using responsive adsense ads with certain wordpress themes you’ll notice a yellow background behind the ads. It’s fairly easy to fix, the issue
Detecting Installed Fonts
I did a fair amount of googling on this one. My original need for this was to see what fonts PhantomJS supported for screenshots. The
See a File’s Last Two Commits with Git Diff
An easy but very useful command to know as a beginner git user. Find what’s changed since the last commit of a file or you’ve
Get Screen Size
You actually don’t need jQuery to simply find the user’s screen resolution size. It’s fairly simple with plain old javascript. Your current screen resolution is:
I’ve tried every Apple Lightning cable
Sixteen. I just counted them all. That’s the number of Lightning cables I’ve bought on amazon over the last 12 months. If you’re an iPhone