mysql add user
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
2261 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' -> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql -h localhost -u root mysql> USE mysql; mysql> UPDATE user SET Password=PASSWORD('root-pwd') WHERE user='root'; mysql> FLUSH PRIVILEGES; mysql> EXIT
mkdir /mount/<linx_share>
192.168.80.1 DL1
mount -t smbfs ///win_share /mnt/linx_share
mount -t smbfs //DL1/sshare /mnt/share
$HTTP["host"] =~ "(www\.)?(hatepad|sexymsg)\.(com|net)" { server.document-root = base + "/domains/sexymsg.com/web/public/" server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( ".fcgi" => ( "localhost" => ( "socket" => base + "/var/run/sexymsg-0.socket" ) ) ) }
kill -9 <lighttpd PID> . ~/etc/rc.d/lighttpd.sh start
find . -type d -name .svn find . -name .svn -print0 | xargs -0 rm -rf
alias g='egrep --color=auto -i -r'
gunzip -c <tgz file> | tar xvf -
tar -czf <tar file> <file to archive>[...]
echo -n > development.log
mysqldump -u <username> -p -q --single-transaction <db_name> > <backup_filename>
mysql -u <username> -p <db_name> < <backup_filename>
mysqldump -u <username> -p -q --single-transaction -t <db_name> > <backup_filename>
mysql -u <username> -p <db_name> < <backup_filename>