Padding File names with zeros
need to pad some file names with zeros? couldnt be simpler!
for f in foo[0-9]*; do mv $f `printf foo%05d ${f#foo}`; done
rename 's/\d+/sprintf("%05d",$&)/e' foo*
Compression types and utils in Linux There are many compression utilities available to the average users on a linux system, so which one is best? well it all depends on what your intended use/goal for the file(s) is. Are you planning on sending the file to other OS’s? are you planning on decompressing the file…
WireGuard VPN is a newer protocol that offers faster speeds, better security, simpler configuration, and improved battery life compared to OpenVPN. It uses modern cryptographic techniques, which makes it more secure and efficient. However, it may not be as widely supported as OpenVPN by VPN providers and clients. This post shows you how to host your own in docker in under 10 minutes!
Why use a nginx proxmox proxy using letsencrypt ssl? 1st: why not? 2nd: Load balancing! Nginx is built to handle many concurrent connections at the same time from multitude of clients. This makes it ideal for being the point-of-contact for said clients. The server can pass requests to any number of backend servers to handle the…
Got an android tablet or phone you aren’t using? or are using but feel it can serve other purposes while not doing whatever you are forcing it to do against its will? well check Ultimate server app, a *FREE* app out that turns your android device into a server type of your choice! Overview – Add a…
Mysql tuner telling you to optimize your tables? or you just happen to be bored? Mysql optimize Reorganizes the physical storage of table data and associated index data, to reduce storage space and improve I/O efficiency when accessing the table. The exact changes made to each table depend on the storage engine used by that…
find /home/user/somedir -depth -type d -empty -exec rmdir -v {} \; This CAN and WILL destroy all your data and eat your small { dog | cat | turtle | parrot } if you aren’t careful! ALWAYS check the path twice and then check it again before using.