Linux: get UPS remaining battery time

If you have a UPS connected to your Linux box maybe you need some simple way to get how much power is left in the batteries, i’ve written a simple tool to get this information (note: you need Nut to be installed, configured and running). #!/bin/bash# device to check using “nut” utilitiesUPSDEV=”usbups@localhost”# chars to be […]

Apache NetBeans – building and installation

NetBeans is now an Apache Foundation project, but (as of today) we lost the possibility to download a specific release (Java only, PHP, C/C++, …), the standard version available (release 9+) is only built with Java support. I have created a very simple script that build Apache NetBeans including support for various programming languages (PHP included), getting sources from […]

PHP – file encryption/decryption

To have some sort of privacy while sending/receiving messages (or files) using encryption is the first choice. Below you can find a very simple PHP web application that allows you to encrypt/decrypt a file using your web browser (and a web server hosting the page).

Slackware: keep Gradle up-to-date

Using AndroidStudio to develop mobile apps requires you to always have an updated installation of  Gradle, doing so on a Slackware system could lead to quite a lot of manual work. To help me in the process i created a small tool that on its own downloads and makes a Gradle Slackware package (thanks to these SlackBuilds). To use […]

Linux: change temporary directory for Android Studio

Using Android Studio the directory used by the system to store temporary files (the default one is /tmp) could be filled by many (big) files, in order to limit this behaviour you can choose another directory to be used by the IDE. To do so you could launch the IDE every time with the following commands (in […]

MultiCopy: copy a file to multiple destinations

Often i have to copy manually a single file into many destination directories (or files), so i decided to create a command line tool to do help me in doing this task: Multicopy (mcp). The program can be used as show below: mcp <src_file> <directory_1> <directory_2> … <directory_n> copy file <src_file> into the given directories […]

Manage D-Link DCS-960L motion detection using rfid tokens

After having presented RFIDer and after having show you a simple shell script to control motion detecion of a D-Link DCS-960L, i want to describe how to merge those two programs in order to enable/disable motion detection using rfid tokens and a rfid reader. As usually i’m using a RaspberryPI as a central unit.

WP-Disk-Free: WordPress free disk space checker

To monitor free disk space on a server hosting a WordPress website i created a new plugin, a sort of clone of the unix command df,  called WP-Disk-Free. This plugin allow you to: define in the Settings page minimum free disk space  (MB) to use as a warning quota receive an email, sent to a […]