Hide Tab-Bar in Firefox Quantum

When Firefox decided to change the shell of the browser and move to WebExtensions (same format of extensions as used by Chrome) you have not been able to change the interface as you wished anymore via browser extension. I was using TabMix Plus, and later one Tree Style Tab extensions in order to fit many open tabs and have them all visible at the same time. Before, extensions could automatically disable tab bar for example and minimize vertical space usage....

December 24, 2018 · 1 min · Ivan Tomica

Mutt – superb TUI email client

I’ve been using Mutt for quite some time now and I find it great due to many things such as: Very lightweight - I’m able to use it on any machine without making the machine unresponsive like with Thunderbird or Evolution when they decide to pull all of the 20-30 thousand messages I have in my mailbox TUI interface - the fact I can use it from the terminal has helped me develop my whole workflow around it....

December 8, 2018 · 6 min · Ivan Tomica

Convert Ubuntu proper to ElementaryOS

With the release of Juno I decided to give it a try and pretty much liked it on laptop. In fact I liked it so much that I decided to install it on desktop as well. On my main rig I run Ubuntu proper (18.04 + KDE installed manually). Since I have everything set up, and am lazy to reinstall machine unnecessarily, I’ve decided to just convert that install to ElementaryOS so here are the steps I did to achieve that:...

November 4, 2018 · 1 min · Ivan Tomica

Persist login screen keyboard layout on Mac OS X

When I was setting up Macbook I selected Croatian keyboard layout and for some reason it was defined as default from that moment for login screen. Although I primarily use US layout and have changed it for my account Croatian was still used for login screen once the computer powered on. No matter how I changed default layout and set up global one it would still default to Croatian after the reboot....

October 5, 2018 · 1 min · Ivan Tomica

Firefox’s address-bar shortcuts

Prefix thing you’re searching for with: ^ for matches in your browsing history. * for matches in your bookmarks. % for matches in your currently open tabs. # for matches in page titles. @ for matches in web addresses.

August 6, 2018 · 1 min · Ivan Tomica

Useful bash shortcuts

Moving around: CTRL + A # beginning of the current line CTRL + E # end of the current line Alt + F # one word forward Alt + B # one word back Text manipulation: CTRL + U # delete characters before cursor CTRL + K # delete characters after cursor CTRL + W # delete word before cursor Alt + D # delete word after cursor Alt + U # word after cursor to uppercase Alt + L # word after cursor to lowercase Alt + C # capitalize a word

May 20, 2018 · 1 min · Ivan Tomica

Hide other users processes on Linux

By default proc is mounted in a way that allows inspection of other users processes by any account on the system. This can be a security risk if attacker gets hold of one of the accounts on the machine as it can freely inspect processes and gather information that it perhaps shouldn’t have. In order to restrict access we can add hidepid mount option to /etc/fstab: proc /proc proc defaults,hidepid=2 0 0 To re-mount current /proc you can use:...

April 22, 2018 · 1 min · Ivan Tomica

Using File Descriptors to calculate progress in Linux

ProcFS in Linux has many useful information about process and its status. In this particular case I’ll show you how to determine progress while copying the file with cp. Same principle can be used for many other situations as well; like importing MySQL dump or whatever you comes up on your mind :-) So in this situation I am copying the ~98GB file to another directory: cp -a /input/archive.tar.gz /output/ First, let’s find PID of this process....

April 21, 2018 · 2 min · Ivan Tomica

Synergy 2 on Ubuntu Linux

Ever since Symless (company behind Synergy product) has published “cloud based Synergy 2 service” I had nothing but problems and headaches with it. The major issue that I have had was that it simply wouldn’t pass the mouse/keyboard control to other configured screen. THIS IS THE SOLE PURPOSE FOR THIS PIECE OF SOFTWARE BTW!. Anyhow, after I stopped whining and decided to look into issue I’ve found that bot laptop and desktop were “Unable to open display :0:0”....

February 10, 2018 · 1 min · Ivan Tomica

Vim Cheatsheet

Some of the shortcuts I find useful in Vim, but sometimes I fail to remember some of them :-) Navigation gj and gk - move down and up by virtual lines gg - beginning of the file G - end of file 25G - 25th line w - beginning of the next word W - beginning of the next word, delimited by space e - end of the word b - beginning of the word B - beginning of the word, delimited by space % - matching parentheses 0 - beginning of the line (^ also works) $ - end of line Insertion...

February 4, 2018 · 1 min · Ivan Tomica