2020 January

Delete Files with Java 8

A friend asked me to help him with the following in Bash – delete all files but a whitelisted and use mix / max depth for directory traversal. It’s probably possible in Bash with some crazy find, grep, etc one-liner. But here’s how good it looks in Java 8 with streams, predicates, etc… With Java… read more »

How to Secure an Outdated Web Application in 5 Minutes

I’ve had the following challenge yesterday. A friend of mine had an old Joomla 2.5 with a bunch of customization – additional components installed, custom theme, etc. It was hosted somewhere and had to be transferred away for some reasons. But before being transferred to a hosting which I am responsible for, it had to… read more »

Sidebar