Snippets

Personal snippet collection. Might not always be up to date.

Convert avi to mp4 on Linux console

If you need a fast and easy way to convert an avi video – from a screen recording – to mp4 you can use this simple command:

Read more

Create a RSA key pair on Linux

The default save location of the key pair (public and private key) will be shown. It should always be ~/.ssh (/home/yourusername/.ssh).

After you confirmed the location the key pair is stored you are asked to enter a passphrase. That is your password for every system your public key of the pair is stored.

At the time of writing the default length of the key is 2048 bit.

Source: How To Set Up SSH Keys

 

InfraRecorder does not start on Windows 10

After installing InfraRecorder on Windows 10 it will only start once. After that the InfraRecorder UI will not show up. When you take a look at the task manager you will see that an instance of InfraRecorder is running but no UI is present; killing the process and starting InfraRecorder anew will not solve the problem.

Quick Fix

This is a known bug (#729) and at the moment the only workaround is manually deleting the settings.xml file. This file can be in one of the follwing locations:
C:\Users\YourUserName\AppData\Roaming\InfraRecorder\ or InfraRecorder application directory when using the portable apps version of InfraRecorder.

Permanent solution

The above mentioned fix will only work once. You should use this one shot to permanently solve the problem. Just deactivate the “Remember the last active folder” checkbox in the InfraRecorder configuration.

InfraRcorder choose configuration

InfraRecorder - Checkbox remember last active folder

After you deactivated this checkbox InfraRecorder will work just fine.

Remove last character with cut

As cut can only remove the characters from the beginning of the string we have to pipe the string through rev first to reverse the order of the characters. Then we remove the first character with cut and reverse the string to its prior order.