2014/02/03

Firefox plugins

Adblock Plus (must-have)
Firebug (must-have)
iMacros (automation)
NoSquint (page zoom)
Status-4-Evar (green loader)

2014/01/31

2013/11/15

Search for Perl module - PERL5LIB

In .bashrc:

search () { (
    # Searches for perl module. Usage: "search My/Modul" or "search My::Modul"
    for DIR in ${PERL5LIB//:/ }; do find -L $DIR | grep ${@//:://}; done;
) };

2013/11/06

Installing VirtualBox on Fedora 19

Download and install VirtualBox from website.
Download and install VirtualBox extensions (matching your VirtualBox version) from website.
# yum -y install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
# reboot
# /etc/init.d/vboxdrv setup

2013/07/16

Reset root password for MySQL

1. find binary (mysqld)
2. launch it with options --skip-grant-tables --skip-networking
3. connect to mysql
4. change pass

For example, on Debian:
service mysql stop
mysqld --skip-grant-tables --skip-networking &
> [1] 12192
mysql -u root -e <<EOSQL "UPDATE mysql.user SET Password=PASSWORD('temp123') WHERE User='root'; FLUSH PRIVILEGES;"
EOSQL
kill -9 12192
service mysql stop
service mysql start
sleep 5
service mysql restart