AWS ECS instance has high CPU load from dmeventd
Today we found two of our ECS instances in a cluster had unusually high CPU loads. A quick look revealed dmeventd was responsible for that.
Turns out old containers and images are not getting cleaned up by ECS.
We got back to normal levels by removing old containers and images from the instance:Read more…
Let Nginx handle browserconfig.xml 404 errors with this inline config
If you find lots of 404 errors for browserconfig.xml files in your log files then this little trick might help. Since Windows 8 Microsofts IE requests this file from the site root to configure the desktop tiles in Windows 8.
If you just want to get rid of those 404s you can serve an empty browserconfig.xml inline from your Nginx config file:Read more…
Serve robots.txt inline in Nginx
To quickly serve a robots.txt from Nginx without actually having access to the physical file you can define the content of the robots.txt file in the Nginx .conf file.
Allow access to all User-agents:
Disallow access to every User-agent:Read more…
Create an EC2 instance-store AMI from a running Ubuntu instance
Since Amazon started offering EBS instances the classic instance-store images have gotten little love. But when you want to spawn lots and lots of instances a simple instance-store AMI is more flexible and cheaper.
The following steps let you create an instance-store AMI from a running Ubuntu 14.04 LTS instance.
Setting up your current instance
Start an instance-store Ubuntu image. You can findRead more…
Storing tree structures in a database is simple. Add a column for the
parentid and everything makes sense.
Our example data:
Which shouldRead more…
Mac OS X and Google Chrome: Set printer defaults from color to black and white / grayscale
Google Chrome on Mac OS X does not use the printer defaults set in the system.
To set the defaults for the Chrome print interface, for example to set the default color mode to black and white / grayscale, follow these steps:
Enable Web-Access to the Unix Printing System by typing
cupsctl WebInterface=yesin a terminal window.
Open http://localhost:631 in a browser.
MS-SQL: List table sizes and row count
How to prevent the creation of .DS_Store files on network drives
When working on network drives with Mac OS X every Mac user will by default create .DS_Store files. Those files are used by OS X to store custom attributes like icon positions. For more info on .DS_Store files read this article.
To prevent those files from being created:
- Open up the Terminal
- Run the following command
defaults write com.apple.desktopservices DSDontWriteNetworkStores true