Nginx as origin for S3 with authentication, with CDN on top

We recently had a small problem with our content delivery system. The setup is as follows: – AWS S3 bucket that requires authentication – EC2 instance, running Nginx with ngx_aws_auth – ELB load balancer in front of the EC2 instance – CDN configured to use the ELB as the origin The problem was that the… Continue reading Nginx as origin for S3 with authentication, with CDN on top

Nginx: Reject request if header is not present

It was surprisingly difficult to find a full working example of this, so here’s my take on “How to make Nginx require that a certain header is present with a certain value in the incoming request”: nginx.conf: http { map $http_x_mycustomheader $is_mycustomheader_not_ok { default “1”; MyApprovedValue “0”; } … } mysite.conf: server { … location… Continue reading Nginx: Reject request if header is not present

Published
Categorized as IT

Obi-Wan Kenobi’s flashlightsaber

I happened to find this 3D-printable model of Obi-Wan Kenobi’s lightsaber, so I decided to see if me and my 3D-printer were up to the task. There’s also an article about designing the lightsaber model in the Ultimaker blog.

Inns and Cathedrals added to the tile counter

EDIT: Latest post about this tool is here The Carcassonne tile counter I made a year ago has now been extended with tiles from the Inns and Cathedrals extension: Tile counter incl. Inns and Cathedrals.

Published
Categorized as Games

Wooden Tsuro tiles

Well, plywood, really. With printed paper glued on top to make the paths. What I actually want is a set of tiles where the paths and the background are made of different coloured wood veneer, but that would require investing in some new tools and spending a lot of time cutting the pieces. So, for… Continue reading Wooden Tsuro tiles

The number of uses of the word “fuck” in Tim Minchin’s “The Pope Song”

This is a breakdown of how many times Tim Minchin uses the word “fuck” or some derivative thereof during the performance of “The Pope Song”, as performed in the Royal Albert Hall with The Heritage Orchestra. The lyrics have 454 words in total. “motherfucker” is used 42 times (9%) “motherfucking” is used 11 times (2%)… Continue reading The number of uses of the word “fuck” in Tim Minchin’s “The Pope Song”

Published
Categorized as Language

Carcassonne tile counter

EDIT: Latest post about this tool is here While playing Carcassonne this Christmas, the discussion turned towards optimal playing, and how that would require memorizing the distribution of different tiles in the deck, as well as keeping in mind which tiles have already been played. We thought that making decisions based on knowing what’s left… Continue reading Carcassonne tile counter

Published
Categorized as Games

WordPress 4.0 not vulnerable

Related to my previous post, I emailed WordPress lead developers about the vulnerability, and got this response from Andrew Nacin: We’re aware of the report and have been investigating. If you are running the latest version of WordPress (4.0), you have nothing to worry about. EDIT 2014-11-21: WordPress 4.0.1 is out, with several security fixes… Continue reading WordPress 4.0 not vulnerable

Published
Categorized as IT

Comments disabled due to WordPress vulnerability

UPDATE 2014-11-10: WP 4.0 is not vulnerable. The commenting feature on this blog has been temporarily disabled (using the Disable Comments-plugin) due to an apparently discovered vulnerability in all current versions of WordPress. The details of the vulnerability have not been published yet, but WordPress will publish fixed versions in the next few days. I’m… Continue reading Comments disabled due to WordPress vulnerability

OS X 10.10 Yosemite phones home

After OS X 10.10 Yosemite came out, a lot of people noticed the OS sending private information to Apple’s servers without the user’s consent. I haven’t updated to Yosemite yet, and I might not update at all, largely because of such disturbing findings. Apple has released a statement saying “we take privacy seriously”, but sending… Continue reading OS X 10.10 Yosemite phones home

Published
Categorized as IT