Getting mysql socket address

mysqladmin variables | grep socket will give you something like: | socket | /var/run/mysqld/mysqld.sock

Format flash drive from terminal

First of all type the below command for know the name of your pen dmesg | tail Then unmount your pen drive using the following command. sudo umount /dev/sdb1 Then enter the following command to…

Working with Heroku (tips)

To reset DB in Heroku run: heroku pg:info you will get something like === HEROKU_POSTGRESQL_ONYX_URL (DATABASE_URL) then run: heroku pg:reset HEROKU_POSTGRESQL_ONYX_URL To see live logs, just run:  heroku logs -t To access console: heroku run…

Sopcast P2P TV on Ubuntu

Install Sopcast Internet P2P Television in Ubuntu 10.10 “Maverick Meekrat” sudo add-apt-repository ppa:ferramroberto/sopcast sudo apt-get update sudo apt-get install sopcast-player