Ivan Tomica

Category: Blog

Total 125 Posts

“One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.” – Robert Firth

Awesome WM – Fullscreen flash in Firefox

I use AwesomeWM as my window manager of choice. As you probably know that’s tilling window manager. If you also use it you know what PITA it is to have fullscreen flash in Firefox, especially if you’re using multiple displays. So here are the things that I did to hack

Continue Reading

Swap file

First step is to create empty file (I’ll create 1GB one). You can do that by issuing one of the following commands (you’ll need to be root): fallocate -l 1G /swapfile or dd if=/dev/zero of=/swapfile bs=1M count=1024 After that change permissions on that file so nobody else can read it:

Continue Reading

Solarized tema za Chrome

Budući da sam fan palete boja “Solarized” odlučio sam si napraviti temu za Google Chrome u tom stilu. :-) Za preuzimanje i instalaciju teme kliknite ovdje. *Tema je izrađena pomoću stranice “Theme Beta“.

Dodavanje diska u LVM

Scenarij: Instalirali smo poslužitelj te je nakon nekog vremena ponestalo prostora na istom. Ne želimo ništa brisati već želimo proširiti disk, kako to možemo najlakše napraviti?

ssh-agent kao systemd servis

Zaštititi privatne SSH ključeve snažnom lozinkom je pametna stvar. U slučaju da vam netko uspije ukrasti privatni SSH ključ imate vremena “u miru” zamijeniti isti jer da bi ga koristili trebaju pogoditi i lozinku za otključavanje vašeg privatnog ključa. Prilikom svakog povezivanja putem ssh ili scp programa potrebno je unijeti lozinku kako bi

Continue Reading

Kako koristiti DIG

dig (domain information groper) je alat za slanje upita prema DNS poslužiteljima. Dio je BIND-a i zamjenjuje starije alate poput host i nslookup.