sed is a really powerful Linux command line utility. It can in a one line do what would take sometimes 20-30 lines of code in
How to Recursively Extract All Nested Zip Files in Linux
I needed to recursively unzip a big mess of nested zip files. This shell command does the trick, it also preserves the directory structure.
Using pathinfo Function to Detect File Extention
Sometimes that’s not necessary to check a file’s mime type and you only need to check the file extension. To do that we can use
Function to Parse URLs From a PDF Document
You don’t have to actually programmatically read a PDF to parse out the links in them. This simple routine below will parse out all the
Learn PDO In 30 Seconds
phpdelusions is my main go to guide for everything php/pdo. But to just get started with PDO you really only need to know a few
How to Setup Password-less Loggin with SSH Keys
Having to type in passwords manually all day long into servers you manage is a pain. You should be using ssh keys, they’re more secure,
A Simple Slope One User Item Recommender In PHP/MySQL
Big fan of user/item recommenders, which is also known as collaborative filtering. Slope one is a very basic but reasonably accurate recommender algorithm which makes
This is the Best Command to Upgrade Ubuntu
This is the only command I’ll use to upgrade or update the OS on my Ubuntu instances, any version. This doesn’t upgrade to the next
Parse Emails From a String
Handy one for all sorts of reasons, just don’t use it for evil : \. I also did an online working version of this function.
How To Easily Parse Incoming Emails From Postfix
Step 1: Postfix Config I’m going to assume you have postfix and your domain dns already setup. Adding an incoming email that you can parse