Convert audio in bulk with GNU parallel

The below command will convert flac files in a folder to mp3. You can add multiple output formats in the end. Source link: https://unix.stackexchange.com/questions/487024/batch-convert-decode-audio-into-multiple-formats-with-ffmpeg

Moodle migration

Moodle migration from one server to another while upgrading to a new moodle version Enable maintenance mode before doing anything. This will make sure that there is no data lose and also inform users that the site will not be available. Plan the migration steps before starting the migration which will speed up the process… Read More »

Reset password in matrix synapse

To reset the password of matrix user in debian After login as root. Change the user to postgres At the postgres prompt connect to synapse database and update users table with new hash. generate the hash with hash_password command

Into the wild

Cool breeze, road that never ends and a bike, a perfect way to start the day in the wild. Pinching sun, burning skin breathless hot air, its time for lunch in the afternoon. Water every were I almost think of sharing a boat, its time for snacks in the evening. Chilling cold, dry lips freeze… Read More »

monitor network speed shell script

No need to install any tool to monitor the network speed. Just run this script and it will show the correct speed. Feel free to modify the code. #!/bin/sh usage(){ echo “Usage: $0 [-i INTERFACE] [-s INTERVAL] [-c COUNT]” echo echo “-i INTERFACE” echo ” The interface to monitor, default is eth0.” echo “-s INTERVAL”… Read More »

bits of code

How to chroot properly. What are the devices and directories to mount To create user in kobotoolbox If you have access to the hosted server: (Additionally you can assign permissions to those users as you create them through the shell — perhaps listing usernames and permissions in your spreadsheet, importing that and iterating through as… Read More »

Redirection with php code

Simple redirection with just 3 lines of code in with the last line says exit;. This worked for drupal 6 and hope it will work for other CMS’s too. 1. Open the file /home/user/public_html/sites/all/themes/acquia_marina/page.tpl.php and add the following lines on the top of the file.