## Here's a snippet for password protecting a directory served by ApacheTo set this up, just add `.htaccess` and `.htpasswd` to the desired directory being served by Apache .
Make sure to [generate your own .htpasswd file](http://www.htaccesstools.com/htpasswd-generator/).
http://gist.github.com/347430.js
For more `htaccess` snippets, checkout PerishablePress' Stupid .htaccess Tricks .
Related Reading
New Years Resolutions for Startups
Here's a small list of 2009 New Year's Resolutions for your startup.
1. Simplify
Anyone can make something complex. It takes thoughtful planning, consideration, and discipline to make something simple. Simple = elegant. The same applies to your business.
2. Get some Humility
Don't assume you know wh...
Dev Tool: Ghost #manage /etc/hosts
## The Ruby community has really been blowing me away lately with their array of indispensable web development tools.
**Ghost** is no exception to this rule. It is a simple command line application for adding and removing 127.0.0.1 entries in your `/etc/hosts` file. I can't believe I hadn't thought ...
Introducing Certifi: Trust Database for Humans
The internet is an untrusted place. Every HTTP request you make should have verification on by default. This happens every time you access a website with your web browser, without any knowledge to the user — there’s no reason your code should be any different.
Certifi is here, for everyone, to make ...