incrond cannot exec process: No such file or directory

Inside you incrontabs, you must leave only 1 space between the . If you leave 2 or more spaces, then the 2nd (and more) spaces will be considered part of the or and it will failโ€ฆ I was leaving 2 spaces between and , and incron did not work and in /var/log/syslog there were these…

Dummy node script to respond 200 (or anything) to a call for testing purposes

This is as bare a node App as you can make but it comes in handy when you want a . dummy server just to return 200s and or a JSON object at super fast speeds on small systems:   var express = require(‘express’); var app = express(); app.get(‘*’, function(req, res) { res.sendStatus(200); }); app.listen(‘3000’);…

Cool chkconfig replacement for Ubuntu

Hi,   Ubuntu does not carry chkconfig any more .. besides the standard update-rc.d apache2 defaults or update-rc.d apache2 remove There is a cool tool called : sysv-rc-conf. This tool can be installed using : sudo apt-get install sysv-rc-conf On its own the command opens a cool ncurses interface like this :      …

Reboot required Ubuntu

To find out what triggered this use : more /var/run/reboot-required.pkgs nJoy ๐Ÿ˜‰

converting webm to mp3s ffmpeg

for FILE in *.webm; do echo -e “Processing file ‘\e[32m$FILE\e[0m'”; ffmpeg -i “${FILE}” -vn -ab 128k -ar 44100 -y “${FILE%.webm}.mp3”; done; nJoy ๐Ÿ˜‰

Snapshot backup using cp -al and rsync

This script requires genuine cp -al capable gnu and rsync commands together with a hardlink capable FS + OS.     #!/bin/bash [ $# -ne 2 ] && echo “Incorrect usage : $0 <source path> <target path>” && exit 128 ; SOURCEFOLDER=$1 TARGETFOLDER=$2 SF_LEN=${#SOURCEFOLDER}-1 TF_LEN=${#TARGETFOLDER}-1 #echo “Last character in source folder is ${SOURCEFOLDER:SF_LEN}” if […

Simple page to redirect to https from index.html

<html> <head> <title> Redirecting…</title></head> <script language=”JavaScript”> function redirectHttpToHttps() { var httpURL= window.location.hostname + window.location.pathname +; var httpsURL= “https://” + httpURL; window.location = httpsURL; } redirectHttpToHttps(); </script> <body> </body> </html>   nJoy ๐Ÿ˜‰

Installing node on old version of Ubuntu 10.04

curl -o- | bash logoff and log on nvm ls-remote nvm install v7.9.0 npm -v node -v Caveat : ย  Lots of node stuff fails to compile and run on such an oldย version of linux be warned… Thats it you now have node and npm installed. nJoy ๐Ÿ˜‰