gztool can extract data from a gzip file at any position, and also do tail and continuous tailing of it ! (https://github.com/circulosmeos/gztool) Continue reading
Perl cmdline with Unicode in Windows
These days I’ve been busy redoing a script in Perl that I’ve been using for more than ten years: rnm, which renames files (and directories) with Unicode support in both Windows and linux. In brief, it uses Win32::OLE Perl module to correctly manage files with Unicode chars in Windows. The problem arises when I want … Continue reading
compiling inputstream.adaptive for Kodi 17 on ODROID-C2
There I was, expecting to watch live the Falcon Heavy test flight with my Kodi, on an ODROID-C2 which is able to flawlessly play HD contents (or even 4k). I sent the link to Kodi 17.6 but after a few moments of waiting, it was clear that there was some problem with the transmission using … Continue reading
Checking passwords against size-reduced haveibeenpwned.com hashes files
There is a website called haveibeenpwned.com from which you can download three files (now) in 7z compressed format which contain each one a text file with SHA1 hashes of already hacked password from last years’ hacking known attacks. The uncompressed files are around the double in size of their compressed form… But in fact it … Continue reading
twisted 2-step verification TOTP script
TOTP (Time-based One-Time Password) is commonly used to grant access to internet resources in addition to common user and password. TOTP is used primarily with Google Authenticator mobile app. But the algorithm can be easily implemented. All that is needed is the key provided by the internet resource we want to access to. Only using … Continue reading
FIFO profit’s stock sell calculation with LibreOffice Calc
The generalisation of spreadsheets use nowadays sometimes hides the fact that these tools aren’t good enough for every imaginable data manipulation. Sometimes people tweak and twist cells in order to achieve results that are simply beyond the possibilities of a spreadsheet application, no matter how powerful. For these occasions, R is probably more suitable. Anyway, … Continue reading
Axolotl statistics script… and gource animation!
In a previous post I introduced Axolotl, a documentation system specially suitable for sysadmins, and I stated there that the simple text files generated under this system can be easily parsed to extract statistics. But in fact these statistics can also be easily converted to Gource animations and videos, so I updated my statistics script … Continue reading
triops: operation and file format description (v9.0)
triops is a command-line tool for encryption/decryption of files that I released under GPL v3 some time ago. Please, check github for actual code. Note also that a version for Android is available. This post will try to explain its operation and file format. Explanation covers all versions published until present (v9.0). At the end … Continue reading
creating a VPN as subnet of a LAN… and enjoying it
While I was configuring a VPN one of these days following the excellent wiki at openvpn.net, I realised that there’s another “creative” way to configure it so no iptables’ configuration is needed. In my particular case I was trying to use routing, and to install OpenVPN not running on the default gateway of my LAN. … Continue reading
Compiling complex numbers in C on a Solaris 9 platform
In a previous post I introduced “circle“, an app for analysing byte statistics in files in a visual way. Being a very small C99 project, I tried to compile it in an old Solaris 9 platform (SPARC processor), and noticed that I couldn’t find <complex.h> anywhere in the machine. The only clue I’ve found about … Continue reading