Hojjat (18)

How to install Interception Tools on Pop!_OS

Interception ToolsWhat is Interception Tools?It's a software that lives between the kernel and the X server. It processes the input events and can modify it. You can modify the keyboard layout, or make the keyboard act like a mouse, or... Pressing Esc is hard. Pressing…

Continue reading...

Rust: Ref, Deref, Clone

To convert `Option<T>` to `Option<&T>` use `as_deref()` To convert `&Option<T>` to `Option<&T>` use `as_deref()` To convert `Option<&T>` to `Option<T>` use `cloned()` I don't know what is the difference between `as_ref()` and `as_deref()` when it comes to converting `&Option<T>` to `Option<&T>`.

Continue reading...

The terminal prints ^M instead of a new line!

It is probably because some program didn't exit properly. Thankfully, there is a program called stty that can fix this. Here is how to reset all modes to reasonable values for the current terminal: stty sane You can see all settings for the curent terminal…

Continue reading...

Fix Scrollilng Speed on Ubuntu 18.04

Install `imwheel`: sudo apt install imwheel Create a file with this content: #!/bin/bash # Version 0.1 Tuesday, 07 May 2013 # Comments and complaints http://www.nicknorton.net # GUI for mouse wheel speed using imwheel in Gnome # imwheel needs to be installed for this script to…

Continue reading...

CouchDB on Ubuntu 18.04

Install CouchDB using snap: sudo snap install couchdb Set the admin pass: sudo snap set couchdb admin=1 Give it permissions that it needs: sudo snap connect couchdb:mount-observe sudo snap connect couchdb:process-control Start the service: sudo snap start couchdb Go to this address in your browser:…

Continue reading...