Note: If you’re using old Errbit version (0.2.0, 0.4.0) and an old Airbrake version (v4) please refer to this manual to make it work with self-signed certificates. Having an error catcher like Errbit behind SSL is generally a good idea. Especially when Errbit is hosted on a different server than you application (for example when […]
Read more at the sourceCategory Archives: hosting
Synology DMS 6 + Gitlab Docker + Gmail
When you’ll setup your Gitlab instance using Synology DMS 6.0 UI, despite the fact that you’ve provided all the Gmail credentials, you will notice that it does not send any emails. You probably end up with a message similar to this one when: EOFError: end of file reached It may sound a bit enigmatic, but […]
Read more at the sourceMultiple UNIX sockets bindings for Puma cluster
If you want to bind Puma to a unix socket, you can do this either by providing a -b options: or using a puma.rb config file and setting the bind options. Unfortunately if you try to bind multiple Pumas to one socket, you might end up with issue similar to this one: So, what is […]
Read more at the sourceRecovering QNAP NAS lost data when NAS not starting properly
QNAP is a company that designs great network attached storages (NAS). Unfortunately, even their NAS can crash. Mine did. Before you get to how to recover the lost data, here’s my NAS and RAID spec (so that you can understand what and why I did): QNAP TS-410U RAID5 4 HDD (/dev/sda, /dev/sdb, /dev/sdc, /dev/sdd) Approximately […]
Read more at the sourceRuby – Installation and compilation from sources on Debian
If you don’t want to use Ruby from your repositories and you don’t want (or can’t because of some reason) to use RVM, here’s a quick howto download and compile Ruby from sources (all the commands should be executed with sudo or as a super user): First a small update and some neccessery libs: Then […]
Read more at the sourceMongoDB monitoring with Munin – Setting up Munin to work with MongoDB
To monitor MongoDB you can use many tools, some like MongoDB Management Service (MMS) are cloud based, some like Munin might be installed locally. Today we will focus on setting up Munin to monitor MongoDB. Getting started with Munin If you don’t know what Munin is, or how to install it on your platform, please […]
Read more at the sourceRuby & Rails: Making sure rake task won’t slow the site down
If you don’t have multiple cores and/or you have a small VPN, you may end up with a huge slow down of your web app, when rake tasks are executed. This can be a big issue especially when you use something like whenever to perform periodic tasks. Luckily there’s a nice program: nice is a […]
Read more at the sourceUndefined and cache/xxx and invalid %-encoding weird requests
Recently I’ve been having a lot of weird looking requests that would end up reported in Errbit. Initially I thought that it is my fault but after double checking all the JS code, I would still get those errors. Fixing this is quite easy. Undefined/cache/xxx requests come from Complitly malware chrome plugin. Solution to this […]
Read more at the sourceNginx: Block access to certain parts of your app based on visitor country
It may be a good idea to enable some parts of your application based on a user country. You could do this on an application level: But why would you want to store non-business logic like this in your app? There’s a much better solution: you can use the Nginx GeoIP Module. To do […]
Running GitLab 7.1 using Puma instead of a Unicorn
Warning Warning! Before you do this, please read why you should’nt: why did gitlab 6 switch back to unicorn? So now, when let’s get started… Gemfile updates Nothing special here. Just add: and then: Puma config Create a puma.rb file in your gitlab config dir and copy/paste this: and At this point, you should be […]
Read more at the source