Category Archives: Uncategorised

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

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 »

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 »