Category Archives: IT

Explicit workspaces for Terraform

I’ve recently begun working with Terraform at work to move our infrastructure definitions to code. Like a lot of companies, we have some legacy applications that either have never been re-installed, or have been re-installed using a very long and … Continue reading

Posted in IT | Tagged | Leave a comment

Elastic Beanstalk applications using two ports and Websockets

This blog post describes how to set up and deploy an AWS Elastic Beanstalk application written in Node.js that listens to both regular HTTP requests and Websocket connections. TL;DR: Download the sample application, and deploy it into an EB environment … Continue reading

Posted in IT | 2 Comments

Useful paths for debugging Elastic Beanstalk deployments

Sometimes it can be painful to try and get an Elastic Beanstalk application to deploy cleanly. In order to effectively debug the issues, it’s necessary to SSH into the instance. This requires that you’ve added a Key Pair in the … Continue reading

Posted in IT | Leave a comment

Setting up a Raspberry Pi from scratch

Getting started with a Raspberry Pi is basically really easy: All you need to do is get a disk image and burn it to an SD card. But of course, that’s just the very basic starting point. Theres’s plenty of … Continue reading

Posted in IT | Tagged | Leave a comment

Forwarding SSH keys to a Vagrant box

Scenario: A new Linux box has been installed with Vagrant, and now I must git clone a non-open repository to the server, so I need to forward my SSH keys to the root user on the virtual server. 1) Add … Continue reading

Posted in IT | Leave a comment

Filtering out outliers in Arduino ultrasonic distance sensor data

A friend of mine asked me how he could remove invalid data points from the measurements made by the ultrasonic range finder in his Arduino project. A quick search got me to this page, but some of the links were … Continue reading

Posted in IT, Making stuff | Leave a comment

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 … Continue reading

Posted in IT | Tagged , , , , | Leave a comment

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 … Continue reading

Posted in IT | Leave a comment

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 … Continue reading

Posted in IT | Leave a comment

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 … Continue reading

Posted in IT | Tagged , , | Leave a comment