Password Protection using .htaccess

Password protecting your folders using htaccess protection involves two files, .htaccess and .htpasswd. 1. Use the following command in Linux to create the .htpasswd file (by the way the .htpasswd file can be named anything, doesn't have to be named '.htpasswd'). Replace username with the username you wish to…

Installing the MK Check Agent on CentOS 6 (64bit)

Download the script # wget -O mk-agent-install.sh http://pastie.org/pastes/9233120/download Make the script executable and run it. Important: you must be using CentOS 6 (64bit) and you must be root, otherwise this will not work. # chmod u+x mk-agent-install.sh # ./mk-agent-install.sh Enter the IP address(es)…

Monitoring SNI SSL Certificate Expiration with Nagios

Nagios' plugin check_http can also be used to verify the validity/expiration of an SSL certificate. However if your webserver uses SNI (multiple SSL certificates on the same IP address), you have to use the --sni switch. Otherwise information for the wrong (default) SSL certitificate will be shown: ./check_…

Cancel Amazon Web Services (AWS) Account Shortcut

Shortcut link to permanently close your Amazon Web Services account: Login as normal, use the link below. https://console.aws.amazon.com/billing/home?#/account Scroll down to the cancel option; Tick the checkbox and click on 'Close Account'…

Using an external SMTP server with GitLab

GitLab 7 (Omnibus) Edit the /etc/gitlab/gitlab.rb file to match your SMTP servers settings and credentials. e.g.: gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.server" gitlab_rails['smtp_port'] = 456 gitlab_rails['smtp_user_name'] = "smtp user" gitlab_rails['smtp_password'] = "smtp password" gitlab_…