Author Archives: bhuvan

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

Move content of the current directory to a sub-directory excluding the sub-directory 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… 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.

ThinkPad e431 led blink morse code

I was always curious about the leds on the laptop and wonder “how are they controlled?” Can they be controlled at all? I was sure they can be controlled because they behave based on state of the laptop for instance when the lid is close the led blinks indicating that system is in suspend mode.… Read More »