Handy Base Converter in Javascript

Just a simple handy javascript I found on stackoverflow for converting any arbitrary base for any precision. Whether it be base 10 to 64, base 2, base 32, etc. I plan to convert it to other language(s) someday for further use. Full credits of this code to the link above. This is mostly a self ...

New (_blank) Window Icon for Accessibility

New (_blank) Window Icon for Accessibility
Found this really simple and clean CSS solution to adding new window icon. a[target="_blank"]::after { content: ""; width: 1em; height: 1em; margin: 0 0.05em 0 0.1em; background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48cGF0aCBkPSJNOSAyTDkgMyAxMi4zIDMgNiA5LjMgNi43IDEwIDEzIDMuNyAxMyA3IDE0IDcgMTQgMlpNNCA0QzIuOSA0IDIgNC45IDIgNkwyIDEyQzIgMTMuMSAyLjkgMTQgNCAxNEwxMCAxNEMxMS4xIDE0IDEyIDEzLjEgMTIgMTJMMTIgNyAxMSA4IDExIDEyQzExIDEyLjYgMTAuNiAxMyAxMCAxM0w0IDEzQzMuNCAxMyAzIDEyLjYgMyAxMkwzIDZDMyA1LjQgMy40IDUgNCA1TDggNSA5IDRaIi8+PC9zdmc+) no-repeat; background-size: contain; display: inline-block; vertical-align: text-bottom; } Source and Demo: https://stackoverflow.com/a/65370632/

cPanel/WHM’s annoying default webpage redirect cache

cPanel/WHM's annoying default webpage redirect cache
Solution Edit the following file: /usr/local/apache/htdocs/index.html And add the following line of code in the <head> <meta http-equiv="Pragma" content="no-cache" /> That’s it! The Problem Ever configure something wrong in cPanel/WHM and then you land on the default webpage that looks something like this? Which says something like… Sorry!If you are the owner of this website, ...

How to use NewRelic with SELinux

NewRelic doesn’t seem to work with SELinux out of the box and it appears it’s out of the scope of NR’s support. So, here’s how to run NR while having SELinux protection. First, we’re going to create the rule file: # mkdir ~/newrelic # cd ~/newrelic # nano newrelic.te The contents of the file should ...

Protected: Cron jobs, the pros and cons of multiple ways to set them

This content is password protected. To view it please enter your password below: Password: