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
Author: amplifier
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
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.
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”
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
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
Whiskygate
This has been discussed online at length, so I won’t go into details. In short, Finland’s State Regional Administration Agency (Avi) told the organizers of the “Beer and Whisky Expo” that if Google searches for “whisky” return links to their event, they’d lose their liquor licence and the event would have to be cancelled. According… Continue reading Whiskygate
Pepakura Iron Man helmet – Part 4
Continued from part 3 Day 16 Is there no end to the filling and sanding?