Zipping and unzipping files using SSH

SSH into your server Install zip and unzip. CentOS / Fedora / Red Hat: yum install zip and yum install unzip Debian / Ubuntu: apt-get install zip and apt-get install unzip Zip a file: zip new-zip-file.zip file-to-zip Zip all files in directory: zip new-zip-file.zip * Zip a directory: zip -r new-zip-file.zip directory-to-zip Unzip to the… Continue reading Zipping and unzipping files using SSH

Pointing a Subdomain to an AWS EC2 Instance

Continuing on with my Adventures with AWS, I needed to point a subdomain to Amazon Web Services, while keeping my primary domain and it's DNS handled at another host. I would consider this is a relatively common need, you have your primary domain hosted somewhere that is handling your DNS for you, but you want… Continue reading Pointing a Subdomain to an AWS EC2 Instance

jQuery and the Slack API

Disclaimer: You should think twice about interacting with the Slack API using client facing JavaScript like jQuery on a public website because your webhook (the special URL that Slack generates for you) will be public. This means that anyone could post anything in your Slack channel without being authenticated. It is possible to interact with the Slack API… Continue reading jQuery and the Slack API

AWS (Amazon Web Services) for Front End Developers

Hosting in 2016 is no small matter. There are a ton of great hosting providers out there, each with their own unique spin. The classics like Hostgator, Mediatemple, Namecheap etc are still around and doing great work but there are relatively new players in the field too like DigitalOcean, who just bill by the hour for… Continue reading AWS (Amazon Web Services) for Front End Developers

Error Establishing Database Connection WordPress Error

If upon browsing your WordPress blog or website you find a mostly blank page with an error message that says something like "Error Establishing Database Connection" it generally means that your MySQL database credentials changed, or your .htaccess file is corrupt. Start out by verifying your MySQL credentials: Connect to your server via FTP and… Continue reading Error Establishing Database Connection WordPress Error