Extract specific file from tar.gz

Side note its not super fast for big archives, sadly.

Facebooktwittergoogle_plusreddit

Nagios – network/device configuration

If you don’t have working Nagios installation fell free to follow Nagios – New installation on Debian 9 link.

We will need to add folder structure (for better organization) to nagios config file:

Not everyone have luxury to always use smart switches around network – those make live a lot easier, but life is not a dream 🙂

Let us make a template for non-smart aka no-ping switches:

Now we can define few switches like this:

You can most variables put to template file so there will be even less writing

Most common type of templete is: linux-server (you can check others in /usr/local/nagios/etc/objects/templates.cfg )

After making few .cfg files inside our directory remamber to chown nagios:nagios -R /usr/local/nagios/etc/devices/ to avoid erros and restart nagios

Facebooktwittergoogle_plusreddit

Turn off additional telemetry from Mozilla Firefox

For starters I wouldn’t co all the paranoic about Mozilla getting some telemetry as most of them are not about privacy. Some of you probably will want to disable those also this could help speed up Firefox a bit.

Get into internal settings by typing about:config in url bar and turn all of these to false by double clicking

I wouldn’t recommend you to do this on any non-stable channel release as those are heavy related with telemetry and making Firefox great.

Facebooktwittergoogle_plusreddit

Wallabag v2 – Pocket (getPocket/ReadItLater) alternative

From long time now I been using getPocket on daily basis – it main straight been big compatibility with IFTTT (if this then that) service which main purpose was automation of some things to make using web more attractive.

I stopped using IFTTT some time ago and I use Pocket just to store urls and sync them with other devices. That functionality now is embedded inside most common web browsers like Firefox and other known one. But I wanted to have full control over what url I want to store and I don’t need to know what are ‘popular’ links other stores.

Let us download needed package:

Extract it to /opt/wallabag

Configure vhost for apache:

From /opt/wallabag directory run:

To test wallabag we can start it from embedded web server that is inside wallabag:

 

Of course that command will start server on port 8000 on localhost, so we can access it only from that host – as security measure.

 

Version 2.0.0 had it release at 04/03/2016 so the android app don’t support the newest version, but the system works great anyway.

 

Edit 07/04/2016:

  • firefox plugin – https://addons.mozilla.org/firefox/addon/wallabag-v2/
Facebooktwittergoogle_plusreddit

Windows – Hidden windows outside our eye sight

When we are using multiply monitor setup sometimes badly coded application vanish from our eye sight .

With this little hack we can recover almost every window:

 

Facebooktwittergoogle_plusreddit

Linux – simplest driver benchmark

 

Facebooktwittergoogle_plusreddit