Java, Linux, MacOs

Get your OS distribution details in Java

I wrote a little utility class to get the OS details in Java. As you may know, you can get the name, version and architecure of your OS in java by using System properties. But this information is limited. For instance, on Mac Os, you will get the version but can not know what is… Continue reading Get your OS distribution details in Java

MacOs

Reclaim some memory on Mac OS

This is a recurring issue for me, having not enough memory on my Mac, so here are some useful commands: Display how much the memory is used by processes, reclaim some and verify again: ps -axm -o "rss,comm" | awk 'BEGIN { s=0;}; {s=s+$1;}; END { printf("%.2f GB\n", (s/1024.0/1024));}' purge ps -axm -o "rss,comm" |… Continue reading Reclaim some memory on Mac OS

MacOs

Install wget on MacOs

You need to have gcc installed, see my previous post then ftp ftp://ftp.gnu.org/gnu/wget/wget-1.13.tar.gz tar -xvzf wget-1.13.tar.gz && cd wget-1.13 ./configure --with-ssl=openssl --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-nls --disable-rpath --with-gnu-ld make sudo make install