Observium - Rename existing devices 1

Observium – Rename existing devices

In case you have a lot of devices monitored by observium and for a reason (a hypervisor migration maybe?) you need to change servers’ hostnames, observium, at the time being, doesn’t seem to support renaming via its web interface but you can successfully do it from the command-line. Read the instructions below. Change current directory […]

ssh refused: sshd[2444]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth] 2

ssh refused: sshd[2444]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]

If you just upgraded Ubuntu 15.04/10 to Ubuntu 16.04 LTS (or otherwise upgraded OpenSSH from v6.9 to v7.0 you may be getting the ssh refusal because of changes in OpenSSH. I was specifically getting this error in the /var/log/auth.log (via Webmin): sshd[2444]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]. For this specific error, you […]

Fix nethogs 'creating socket failed while establishing local IP' 3

Fix nethogs ‘creating socket failed while establishing local IP’

As it’s not available in repo nor PPA you need to build it (it is really easy and quickly done). Fetch and extract

Install dependencies and build

Check and run

Source

Handlebars ifequal helper 4

Handlebars ifequal helper

Handlebars.js  {{#if}} helper lacks of equality condition. In cases where some logic should be put inside the template, some folks prefer to override it. But instead of overriding {{#if}} helper, and taking my chances to break previous/older handlebars templates in my projects, I’m always about to use my custom helper {{#ifequal}}.

Usage

 

swap file on

Create a permanent swap file equal to RAM bytes

This entry is part 2 of 2 in the series Messing with the Swap

Create a permanent swap file equal to RAM bytes. Yeah I know this is the lazy admin talking, but the inside wants out …

swap file on

Swap file on! Only when you need it…

This entry is part 1 of 2 in the series Messing with the Swap

So here’s a quick snippet to turn on swap on a file, even after OS installation, temporarily. At line one notice the file size is 4G . Modify it to your needs.

Boostnote is the new kickass note taking app for programmers 5

Boostnote is the new kickass note taking app for programmers

Boostnote  is an open-source note taking app especially designed for programmers. Build up with Electron framework, previously known as atom shell – atom’s editor engine, make it the ultimate free and open-source cross-platform kickass note app for developers! Your notes will be written in markdown and instantly saved, while Boostnote will make sure  your source […]

Sublime Text 2/3 run shell commands On Save #sublimetext 6

Sublime Text 2/3 run shell commands On Save #sublimetext

Sublime Text editor is my favorite along with atom. Have you ever really wanted to run a shell command whenever you save a file in Sublime? Like, automatically commit the changes on a github repo or rsync files to a debug server or start a service like php‘s built-in web server? How about all of them together, […]

use utf8 you slackers

#Outlook 2007 & 2010 – Change encoding to UTF-8

Slacker-ism in IT is something we all went through!! But Enough is Enough! Stop doing it right now! If you’re already reading these lines, you already know why you are here… So it’s beyond the scope of this article to explain what character encoding is or why you should change it to UTF-8 immediately! Therefore, […]

sysadmin tutorials conky totallynoob_orange

Make your #Ubuntu #Gnome 15.10 desktop cocky again! #conky

Conky is an exceptional system monitor for X, that displays any kind of information on your desktop. If you haven’t met conky until now, do so here. In this tutorial you will install the latest conky manager (2.4 at the time of writing) and some other tools, usually being used by conky themes and widgets. […]