Getting a domain with a ccTLD that is restricted to residents

Getting a domain with a ccTLD that is restricted to residents

A ccTLD is a top-level domain that uses a two letter country code. These domains are often reserved for residents and businesses in the country they serve. For example, you can’t get a .br domain unless you live in or have a business in Brazil. But what if your company is based in the United States and you want to target residents of another country? Or what if you want a vanity domain...

Read More

Getting browserconfig.xml out of your error logs

Getting browserconfig.xml out of your error logs

I’ve noticed a spike in 404s on several of my sites for browserconfig.xml. Turns out Windows 8.1 looks for this file automatically when a site is pinned to the start screen. This file allows you to define several things, including graphics to use for various size tiles and also an RSS URL so you can update your readers when you have new content. Pretty neat. I doubt other browsers or OSs...

Read More

A better CSS reset stylesheet

A better CSS reset stylesheet

If you aren’t a web developer then you may not know this, but browsers are a mess. Every browser picks and chooses how it wants to render the same HTML. For examples, some browsers don’t have any default margin on the body. Some do, but with varying amounts of margin. Internet Explorer is of course the worst offender, and there are many versions of Internet Explorer still widely...

Read More

git: Ignoring files during development

git: Ignoring files during development

I use git a lot, and often find myself needing to make changes to a file that I absolutely don’t want to commit to the repo. For example, a default configuration file may be in the repo, but I want to change which database it is pointing to during development. Or maybe I’ll gut a CPU intensive method during preliminary testing, but I obviously don’t want the gutting method...

Read More

Block all AWS traffic to a server

Block all AWS traffic to a server

AWS servers are cheap and plentiful. Unfortunately this makes them the frequent source of screen scrapers. My servers aren’t running on AWS, and there isn’t any legitimate reason for an AWS server to be talking to my servers, so I decided to just block all AWS traffic. You can get my AWS Blocker bash script on GitHub. It is free and public domain. Amazon publishes a list of AWS IP...

Read More

Use BFG to completely remove a file from your git repo

Use BFG to completely remove a file from your git repo

I like to keep my blogs in git repos. For small blogs this works great, but for blogs with a ton of images this quickly becomes a problem. For example, my wife’s blog has 4GB of images. git isn’t really designed to handle that. So I decided to take out the images. Specifically, I decided to exclude wp-content/uploads from her git repo. Just removing the images isn’t good...

Read More