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

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

Moving /home to another ZFS dataset

When I set up ZFS on my main rig I was kind of doing it “fast as possible” and haven’t paid attention to much details. Recently, I wanted to customize my setup a bit so here’s how I migrated my /home to another ZFS dataset. Setup was as follows: There is ZFS pool called storage composed of two mirrored vdevs One vdev is 2x2TB drives while the other one is 2TB drive and 1,5TB drive....

November 20, 2017 · 2 min · Ivan Tomica

GNOME Shell freezes on log out

So I’ve been battling with this issue for quite some time now. Every time I try to log out of Gnome Shell it simply freezes for anywhere between 10 and 30 seconds or so. This has been grinding my gears and finally I’ve stumbled upon this reddit post. And you know what? Turns out they are right! Removing Caffeine extension immediately resolves this issue.

September 29, 2017 · 1 min · Ivan Tomica

Installing POP!_OS GTK theme on Fedora

Install sassc which is a dependency for building assets: sudo dnf install sassc Clone GIT repository: git clone https://github.com/system76/pop-gtk-theme.git Switch directory and build the themes: cd pop-gtk-theme make make assets Finally, install the themes: sudo make install You need root privileges for that as themes get installed to /usr/share/themes directory.

September 1, 2017 · 1 min · Ivan Tomica

Sync messages across IRC clients with ZNC ClientBuffer plugin

One of the main reasons for setting up ZNC bouncer for me was to be able to have same IRC account on multiple computers and have messages synced across them. This isn’t “default functionality” so you need to install additional ClientBuffer plugin. To install the module on ZNC installed from binary package on FreeBSD you need to: Fetch the module fetch –no-verify-peer https://raw.githubusercontent.com/jpnurmi/znc-clientbuffer/master/clientbuffer.cpp Build module znc-buildmod clientbuffer.cpp Copy module to ZNC library directory cp clientbuffer....

August 13, 2017 · 1 min · Ivan Tomica

GNU Screen tips – Managing regions

Although I use tmux primarily for my “multiplexing needs” I hop into screen from time to time as well. Below are few tips for managing regions inside of GNU screen. Your basic screen window probably looks somewhat like: Ignoring hardstatus settings you basically have one session and one window inside of that session. To split that window in half by vertical axis you can use following combination: Ctrl+a | You should now get something like:...

June 15, 2017 · 2 min · Ivan Tomica