Monday, February 18, 2013

Checking your link speed/duplix on (open)solaris

On an openindiana server, i needed to find the link speed of the ethernet card, this is a reminder if i need it again:

This machine is:
$ uname -a
SunOS openindiana 5.11 oi_151a7 i86pc i386 i86pc Solaris

$dladm show-ether bge0

LINK            PTYPE    STATE    AUTO  SPEED-DUPLEX                    PAUSE
bge0            current  up       yes   100M-f                          bi

Where bge0 is the interface name (from ifconfig)

Separate your trash into biodegradable and non-biodegradable, even if you don't have compost or your trash all ends in one place, reduce by a tiny bit mixing poisonous stuff with what can become good soil. and btw FUCK ZIONISM http://www.youtube.com/watch?v=prVS4KI3Nrg!

Tuesday, February 5, 2013

Tools for monitoring disk activity in linux

This is a quick note for self:

iotop
inotify-tools

Sunday, February 3, 2013

Uninstall cpan perl module

Well, cpan is not really a package management system; cpan is more of a package installer, it can resolve dependencies as well, but apparently not in a way that allows it to know if it can safely remove a package or not.

Never the less, there is hope!

There is a cpan package that can actually remove packages :) it installs a tool to remove packages, I'm not sure it does it in an intelligent way actually; but it did it for me.

So, what is it?

The module is App::pmuninstall ; it stands for Perl Module Uninstall. To install pmuninstall just do:

sudo cpan -i App:pmuninstall

then use it to remove modules as it provides a command which is "pm-uninstall":

pm-unistall

for example:

pm-uninstall XML::SAX

FUCK RELIGIOUS NATIONALISM; FUCK ISLAMISM, FUCK ZIONISM, FUCK DOMINIONISM!