-
MariaDB pipeline in Logstash
Yesterday I had to setup a Logstash pipeline reading data from a MariaDB database and inserting it into Elasticsearch. Since it took a couple of hours to figure this out, here is the configuration I found to got it working. First, get the latest JDBC mariadb connectorJ libraries from mariadb.org. Once its downloaded, move the…
-
SVN checkout depth of two levels
A strategy I found to get the first two levels of files of an SVN repository. Start by checking out only root and 1st level of folders mkdir temp cd temp svn co https://host.com/repos/repo . –depth immediates 2. Checkout content 1st level of folders find ./ -type d ! -path “./.svn*” ! -path “./” -exec…
-
Add WPML language switch without current language
This is a convenient way to add a link in the main menu to switch languages without including the active language. You’d figure this would be included in WPML but this doesn’t seem to be very high on their priority list.
-
Three point estimation
As it happens, I often have to do estimates for small to kind of large projects. As most developers will know, estimating is not as easy as you think. It is even harder to guess-timate something you have never done before. During my project management classes, I did learn about three point estimation, a pretty…
-
Fix Mantis corrupt attachment files
After upgrading to the latest Mantis version, I had a problem with zip attachments being corrupted when downloaded from Mantis. Turns out his error message is added to the files: SYSTEM WARNING: ‘finfo::finfo() [finfo.finfo]: Failed to load magic database at ‘/etc/magic’.’ in ‘/srv/sites/mantis.progi-media.com/htdocs/core/utility_api.php’ line 273 To fix the problem I had to manually configure the…