Tag: Linux

Deleting hundreds of thousands of files on Linux

A badly configured server which leaves hundreds of thousands of temporary files in a single folder is a bummer. Not being able to delete them easily is even more so. I tried the standard rm -rf ./*, but all I

Share Button
Tagged with: , , , ,

AWKward NumGuess implementation

Here’s another silly NumGuess version of the because-I-can kind, this time in AWK. It’s quite a specific language, not designed for writing general purpose programs, but it shouldn’t bother me one bit. In a strange way it fits the NumGuess

Share Button
Tagged with: , , ,

Iptables setup to secure Asterisk server

In this article I’m having a look at securing an AsteriskNOW VoIP server with iptables using custom chains, starting with a simple secure configuration, expanding to multiple users and looking at the issue of dynamic IP addresses. AsteriskNOW is a

Share Button
Tagged with: , , , , ,

Running scripts as root from PHP

I needed to integrate a Linux server with our existing web application, which involved dynamically changing iptables rules by a bash script. For obvious reasons, the script needed root privileges to execute successfully. On CentOS (and a handful of other

Share Button
Tagged with: , , ,

New NumGuess scripts

In case you’re not checking the NumGuess repository on GitHub every minute, here are the latest and greatest developments: Perl version has been updated to be fully compliant with the guidelines. Bash and Tcl script versions have been added, both tested

Share Button
Tagged with: , , , ,