How to mount an encrypted volume from a live ISO

If you destroyed somehow your Linux system, which has an encrypted volume, and you want to log into this, but booting is not working, boot from a live ISO, and type:

you will see sda1 oder sdb1 as your encrypted system

this decrypt it and mount it (for example sda1

after entering the passphrase you can see that this is now decrypted

Getting a verified user on Github

sdfasdfdsa sfdsf xxxxxx When you create a new file directly on Github and push it to your branch, you will see in the commit, that this was done by an verified user.

If you push it from your command line, it normally looks like this:

Alt text
P.S. if you followed the tutorial, and something went wrong, it will look like this:

Using MongoRepository with more than one sorting with Spring Boot

Sometimes you need a List of the Database to be sorted by more than one column.

If you connect to your database with the org.springframework.data.mongodb.repository.MongoRepository you can only give one org.springframework.data.domain.Sort to a search method.

This is how the Repository class looks like:

@Repository
public interface TestRepository extends MongoRepository<Test, Long> {
  public List<Score> findAllByTestName(String testName, Sort sort );
}

test has some column “abc” and some column “def” and some “ghi” …. so to add the order do in th calling class something like:

Deutsche Bahn,Docker and Wifi in an ICE and VPN problems

The Deutsche Bahn is providing free wifi for some years now. It works for most of the people pretty well, but if you are a developer you could have some issues. I was suffering a lot with this, this is why I’m posting it, to help some of you

As you can see, the WiFi is running on the IP 172.18.xxx

If you are running docker it can happen, that you have in your ifconfig a bridge already on this IP:

Using Docker as non-root

[UPDATE 2020-04-21] as mentioned in this post it’s not needed anymore:

Good news: the new docker (version 19.03 (currently experimental)) will be able to run rootless negating the problems that can occur using a root user. No more messing with elevated permissions, root and anything that might open up your machine when you did not want to.

Normally you need to run docker as root:

sudo docker run hello-world

If this is going on your nerves, you can add your normal user to the docker-usergroup.
But before you do this, read the warning in this post (where i also got the code from)

Berlin – where to go

Berlin has so many cool bars and restaurants to offer… I’m many times asked: what should we do? And no, I don’t want to write always the same stuff again, so I was thinking of making this list!

Vegan food First of all: www.berlin-vegan.de has nearly all vegan stuff covered.. Download the Android app or the iPhone app and you are fine.

mySQL workbench can't connect via ssh tunnel

If you can’t connect with your mysql-workbench to a database via ssh have a look at your logfile:

tail -f -n 100 ~/.mysql/workbench/log/wb.log

and you will see this error:

14:12:58 [ERR][sshtunnel.py:notify_exception_error:233]: Traceback (most recent call last):
File "/usr/share/mysql-workbench/sshtunnel.py", line 265, in _connect_ssh
look_for_keys=has_key, allow_agent=has_key)
File "/usr/lib/python2.7/dist-packages/paramiko/client.py", line 306, in connect
t.start_client()
File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 465, in start_client
raise e
ValueError: CTR mode needs counter parameter, not IV

change your transport.py:

sudo nano /usr/lib/python2.7/dist-packages/paramiko/transport.py

press CTRL+W for searching for the term

Sync folders in Vagrant but exclude some folders from syncing

Maybe you know this:
you have a huge Java project, maybe the project itself is a sum of many (not even so small) Java projects.
For sharing the complete setting with other developers you normally use a Vagrant box to make it easy.
At work we needed 2 big projects in one Vagrant box, which included over 10 small maven projects.
Normally I would share it like this:

config.vm.synced_folder "my-project1", "/home/vagrant/my-project1"
config.vm.synced_folder "my-project2", "/home/vagrant/my-project2"

You can imagine, the normal start-time of our server with permanently syncing all folders, including all the target folders took much too long.
On a local machine, without a Vagrant box, it normally needs around 2 minutes to start
But with syncing all target folders, it needs between 7-10 minutes to start the server

Using XIOAMI gamepad with Linux

I have the XIOAMI gamepad, a cheap gamepad which looks like the classical XBOX gamepad When I used it first with my Fire TV Stick, it worked like a charm. I wanted to try it with my Linux and with Steam.

When i used it in a game it was totally uncalibrated. Pressing the joystick to the top position had no effect at all on my game character.