Markdown Preview using Sublime Text

Preview and build your markdown files (e.g. in your web browser using Sublime Text. Install Open Command Palette. Option 1: Type control+shift+p Option 2: Tools → Command Palette… Type “install” and select “Package Control: Install“. Type “markdownpreview” and select it. Restart Sublime Text. Open your file. Example Open the Command Palette and type “markdown preview“. Select “Markdown Preview: Preview […]

Code docker Linux

Docker Basics

The below docker commands should give you a basic understanding of how docker works.  This is obviously not a comprehensive lesson, but should give you enough information to take off on your own. Create an account Login to docker hub docker login Search docker hub docker search centos Run a basic container Run in […]

Code Linux

Secure your website using Let’s Encrypt with Certbot SSL # Let’s Encrypt is a new Certificate Authority # Let’s Encrypt community # certbot is a Let’s Encrypt Client OS: CentOS release 6.8 (Final)Web Application: httpd – Server version: Apache/2.2.15 (Unix) Run the following commands as root. cdyum install epel-releasewget a+x certbot-auto Create conf I created a separate conf file within /etc/httpd/conf.d/ (removed the old one […]

Code Design Internet Linux UNIX

Enable keep-alive in Apache

What is keep alive? Keep alive is a method to allow the same tcp connection for HTTP conversation instead of opening a new one with each new request. More simply put, it is a communication between the web server and the web browser that says “you can grab more than just one file at a time”. Keep […]

Code Internet Wordpress

Browser Caching via .htaccess

I added simple browser caching through my .htaccess file. vi .htaccess IMPORTANT: Add the following to the top of the file. ## EXPIRES CACHING ## ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access 1 year” ExpiresByType image/png “access 1 year” ExpiresByType text/css “access 1 month” ExpiresByType text/html “access 1 month” […]