Installing Xvfb in Centos 6, 7, Fedora

Xvfb, or X virtual frame buffer is needed by selenium and chromedriver or gekodriver so it can run via cron with your PC locked, or without your script taking focus from the user session The Xvfb, or "X virtual frame buffer" will allow scripts and apps to run…

Dump a mysql table without locking

If you want to keep your site/application live, you can dump mysql tables online like so: mysqldump --single-transaction --quick -hhostname -uuser -ppassword database > /path/to/destination-sqlbackup.sql --compress = as it says, enabled compression on the connection to the mysql server. This will always speed up bulk loads 10x…

Compress folder of folders to separate files

Sometimes it is handy to be able to zip a folder to separate files. for i in */; do zip -r "${i%/}.zip" "$i"; done It works great for folders of mysqldumps.…

Google Cloud Platform gcloud SDK

There is no way I can detail even 1% about how to use this tool, but I can tell you how I use it to get you started. Google released the gcloud SDK to control every aspect of Google Cloud Platform. The Google cloud site is a good place to…

Installing autofs mount Centos 7

Sometimes it is better to have a share automount when a program tries to access a share if the server is rebooted after mounting it can cause lockup issues and even slow boot. autofs will always make sure your samba and NFS mounts are working. It's pretty slick. Installing autofs:…