About Olof Larsson

This author has not yet filled in any details.
So far Olof Larsson has created 19 blog entries.
12 10, 2017

Some Git sugar for your .bashrc

By | 2017-10-12T10:15:33+00:00 October 12th, 2017|Uncategorized|0 Comments

I'm one of those people that use Git command line quite a lot and have not really adopted any Git GUI clients. To make make life in the terminal more efficient I have added some sugar to my .bashrc. Make "g" an alias for "git" [crayon-59e984b472e00681676320/] The first line creates the alias "g" for "git". Sadly tab completion stops working and the second line takes care of readding that. At the time of writing I'm [...]

11 10, 2017

Why is my crontab not working?

By | 2017-10-11T13:37:25+00:00 October 11th, 2017|Uncategorized|0 Comments

So your crontab entry is failing and you don't know why. How do you proceed? TLDR Does your crontab end with an empty line? It must or the last entry will not be considered. Have you forgotten to set your PATH variable? Have you setup logging and checked the output for errors? Suggested Crontab Layout I suggest writing your crontab entries like below. [crayon-59e984b473209890465681/] Start with these two lines [crayon-59e984b47320e972631716/] The first line makes sure [...]

11 04, 2016

Automatic Git GPG Signing

By | 2016-04-11T11:30:58+00:00 April 11th, 2016|Uncategorized|0 Comments

This guide covers how to sign your Git commits with GPG automatically when using Cygwin on Windows. The goal is to avoid typing the password repetitively even when Cygwin does not provide the gpg-agent. What is Git GPG Signing? Git supports an extra security layer: https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work If you are a GitHub user you can read their guide on GPG signing here: https://help.github.com/articles/generating-a-gpg-key/ I will not dive into detail describing what GPG signing is and why [...]

2 09, 2015

Manual mod_cloudflare Install and Update

By | 2017-10-12T10:35:04+00:00 September 2nd, 2015|Uncategorized|0 Comments

Introduction This quick guide is based of the official documentation: https://www.cloudflare.com/resources-downloads These steps worked for me on Ubuntu 15.04 and Ubuntu 16.04. Install and/or Update The following batch of lines performs both the initial install and updates existing installs: [crayon-59e984b473606163555313/]

22 05, 2013

innodb_file_per_table for existing MySQL database

By | 2013-05-22T13:48:55+00:00 May 22nd, 2013|Uncategorized|1 Comment

So you want to toggle innodb_file_per_table on for your existing MySQL database? This is a step by step guide explaining how to do just that. Should I really enable innodb_file_per_table? Some people prefer it on: I do http://www.mysqlperformanceblog.com/2007/11/01/innodb-performance-optimization-basics/ http://code.openark.org/blog/mysql/reasons-to-use-innodb_file_per_table https://tools.percona.com/wizard Some people prefer it off: http://umangg.blogspot.se/2010/02/innodbfilepertable.html Other Articles Other people have already written articles on the subject. I would suggest reading those as well to get other points of view: http://www.datavail.com/about-datavail/blog/50-mysql/451-innodb-conversion-to-file-per-table http://dba.stackexchange.com/questions/11043/mysql-changing-innodb-file-per-table-for-a-live-db http://serverfault.com/questions/230551/mysql-innodb-innodb-file-per-table-cons http://stackoverflow.com/questions/3927690/howto-clean-a-mysql-innodb-storage-engine/4056261#4056261 After [...]

22 05, 2013

Convert MyISAM tables to InnoDB

By | 2013-05-22T13:16:25+00:00 May 22nd, 2013|Uncategorized|0 Comments

Did you know that InnoDB replaces MyISAM as the default storage engine since MySQL 5.5.5? For this reason you may want to convert most (if not all) of your current MyISAM tables to InnoDB. Wordpress does for example make use of the default storage engine. That means old Wordpress installations will make use of MyISAM if you don't update them to use InnoDB instead. SQL to get the job done This is the SQL to [...]

17 07, 2012

Backups for your linux server

By | 2012-07-17T23:45:14+00:00 July 17th, 2012|Uncategorized|0 Comments

In this guide I describe how to setup backups for your Linux server. We will backup both locally and remotely for extra security. We will backup... MySQL-databases using automysqlbackup. Normal files using rdiff-backup. Special large folders per weekday using rsync. To a remote server using rsync. Setting up the folder structure We start out with creating a folder structure like this: [crayon-59e984b473a66024891786/] The new root-level folder "backup" is the storage location we will use for [...]

16 07, 2012

Adding a new storage-device

By | 2017-10-12T10:28:22+00:00 July 16th, 2012|Uncategorized|0 Comments

This guide covers how to add a new storage device (such as a platter or a solid state drive) to your Linux machine. All work is done from the command-line. Selecting the right storage device This guide does not cover selecting the right model or kind of storage device. Plugging the device into the computer This guide does not cover how to plug the device into the computer. What's the device name? Now that the [...]

26 04, 2012

Bukkit read timed out

By | 2017-10-11T13:24:56+00:00 April 26th, 2012|Uncategorized|2 Comments

Are you perhaps familiar with the two phrases: read timed out connection reset Since recently I have become quiet familiar with them myself and in this post I will describe how to get rid of them. Reason 1 - Rouge plugin Reason Description Minecraft is mainly single-threaded. The main thread has a formal name when you look in the source code. It is called "Server thread". If a plugin isn't coded correctly the "Server thread" [...]

8 10, 2011

Searching for bukkit memory leaks

By | 2011-10-08T15:01:39+00:00 October 8th, 2011|Uncategorized|3 Comments

In this post I will describe how to search for memory leaks in your bukkit minecraft SMP server. Getting a heap dump The first step is to obtain a java heap dump to inspect. This is a nice article on the subject: http://blog.emptyway.com/2007/04/02/finding-memory-leaks-in-java-apps/ That article describes some different ways to obtain a heap dump. If you are using a JDK version of java instead of an JRE, you have some neat tools at your disposal [...]