Warning: This has not been tested on all linux operating systems use at your own risk. grep -q "net.ipv4.tcp_timestamps" /etc/sysctl.conf && echo "net.ipv4.tcp_timestamps = 0" >> /e...
Exim testing commands
Test delivery to a specific email account exim -bt [email protected] Send a message directly though exim exim -v [email protected] From: [email protected] Subject: Foobar Text Text Text ...
Revese proxy with apache on Interworx
Note: Note you will already need to have the domain added to siteworx. With the domain in siteworx you can add an apache include directly as the user. The path that apache looks for files is bel...
PHP Disabled Functions
Add this to a php file on the web server <?php echo ini_get('disable_functions'); ?> PHP: ini_get - Manual
Softaculous install/reinstall (Cpanel and Interworx)
Softaculous Reinstall wget -N http://files.softaculous.com/install.sh chmod 755 install.sh ./install.sh --reinstall Softaculous Install wget -N http://files.softaculous.com/install.sh chmod 755 in...
Cpanel List Email accounts from shell
List all email userdata Note: This First one outputs A LOT of data for i in $(cat /etc/userdomains | awk '{print $2}'); do uapi --user=$i Email list_pops 2>/dev/null ; done | less List use...
Curl Page Load Test
HTTP curl -s -w '\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o ...
Why you shouldn't use mod_userdir
I commonly see people use or want to use IP/~/username on shared servers. I wouldn’t recommend this is because you now created additional work that will be required to make the site live. As i...
Public DNS Resolvers you can request they clear their cache
Did you know some pubic DNS resolvers give you the ability to clear there cache? Why would you want to do this you ask? Well, what if you have you TTL’s set high and you unintentionally broke som...
Disable hyper threading on ubuntu or Debian
Note: I tested a few different ways and to disable hyper threading and this is what I landed on Warning: Tested on ubuntu 18.04 and debain 9 Non persistent echo off > /sys/devices/system/cp...