This function will return the first n (the number you request) characters careful to not break in the middle of a word. getSummary is also
This function will return the first n (the number you request) characters careful to not break in the middle of a word. getSummary is also
This nice routine is for testing PHP’s memory limits by increasingly allocating 50 more megabytes at a time. Each pass is setting the memory limit with an
Regular expressions are great but sometimes you want to do it faster (meaning easier), depending on what you’re trying to do. When you quickly want
md5 is a older but still commonly used one way hashing algorithm. It produces a 32 character, 128 bit string. This tool will take a
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.
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
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
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,
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
A practical guide to the open-source machine learning stack, including scikit-learn, PyTorch, Hugging Face, setup commands, model evaluation, and how to choose the right tool.