Pretend working hard – Genact

Pretend working very hard in a terminal

docker run -it --rm svenstaro/genact

Checkout the repository:

Or the web version:


Xubuntu – Logitech MX Master 2S keymap

Custom keymap for Logitech MX Master 2S mouse on Xubuntu 16.04.

First, install Solaar to see the battery level on the taskbar

sudo apt-get install solaar


To remap the keys, install

sudo aptitude install xbindkeys xautomation

Then, launch xev to get the keyboard or mouse event to bind


Create the configuration file for xbindkeys

nano ~/.xbindkeysrc

Here is an exemple of this file that map the Back and Forward buttons to BackSpace and Return respectively

# Back button => BackSpace
"xte 'keydown BackSpace'"

"xte 'keyup BackSpace'"
 b:8 + Release

# Forward button => Enter
"xte 'keydown Return'"

"xte 'keyup Return'"
 b:9 + Release

To test your binding

xbindkeys -v

To start xbindkeys


it should autostart automatically

Python 3.6 on Ubuntu 16.04

On Ubuntu 16.04, there is a version of Python installed by default.

You should not uninstall it or it will break your machine.

Install Python 3.6

sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6

Now you can use python 3.6. Check the version by using

python3.6 -V

Install pip for Python 3.6

curl | sudo python3.6

Now pip is installed for Python3.6 and can be used to add package to this interpreter.

Install package for Python 3.6

sudo python3.6 -m pip install Flask


Jetbrains editor (webstorm, inteliJ, pycharm…) – Blurry window on external monitor

Replace “Webstorm” by whatever editor you use.

  1. In Webstorm, go to Help > Edit Custom Properties
  2. Add/edit the line for sun.java2d.uiScale.enabled to be true
    1. sun.java2d.uiScale.enabled=true
  3. In Webstorm, go to Help > Edit Custom VM Options
  4. Remove any line that looks like Dhidpi=true or Dhidpi=false
  5. Find the shortcut that starts Webstorm (on the desktop or find the executable on the location you installed Webstorm)
  6. Right-click it and select Properties
  7. Go to Compatibility tab
  8. Check the box marked Override high DPI scaling behavoir
  9. Set the dropdown list titlted Scaling performed by: System

You’re done.

This solution comes from: