Bhuvan Krishna

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. I started searching for controlling this tiny led and found a very easy way to do it, its as easy as writing '0 on' or '0 off' to a file thats it. Now I had this crazy idea of why can't we transmit morse code…

While developing a CMS we don't have phpmyadmin, plesk or cpanel rather a simple cli. So to create a quick DB with a user who has all privileges to the DB and a password to the user just give these commands. I think this method works for mysql too. $ mysql -u adminusername -p Enter password: mysql> CREATE DATABASE databasename; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON databasename.* TO "username"@"hostname" IDENTIFIED BY "password"; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.01…

Some handy code which is useful when its really needed. pretify json via commandline cat myfile.json | python -m json.tool Start Unetbootin in debian. change sudo to su accordingly. sudo export QTX11NO_MITSHM=1 unetbootin archlinux forum Reset git HEAD git reset HEAD~1 Include full path in the output of find command for current directory find -name "filename" -exec readlink -f {} \; Check progress of dd command while writing to a drive. Very useful while creating bootable pen drives Create bootable drive dd if=[iso path] of=[device] bs=4 While the above command is running open another terminal…

Never ending road and a bike that chugs and hums the rhythm of strain and pain, The morning rush in a city. Pinching sun, burning skin, breathless hot air, its time for lunch in the afternoon. Water every where I almost think of sharing a boat to ride the stinking waters and the filth, sun is setting in the far west. Chilling cold, dry lips freezing fingers goodnight everyone the city never sleeps. The unwanted wild is experienced everyday by millions who live in cities. A typical morning is cool and the traffic makes one feel the road never ends.…