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 »

Customize title bar in GNOME 3 without extension

I always wondered how come in elementary OS the title bar is transparent, When I found the way to change it in debian it was amazing, The GNOME 3 environment has simple and plan but under the hood we can do lot of customization, one of the commands used to customize is gsettings. Ok lets… Read More »