Backup remote database quickly
Quick cmd to backup a remote database locally without storing data on remote server:
ssh -C user@host "mysqldump --lock-tables=falseĀ -uuser -ppass --compress database-name | gzip -9 -c" > backup.sql.gz
It uses compression to speedup the data transfer
Linux: list count of files, dirs or sym links
ls -l | grep ^- | wc -l
ls -l | grep ^d | wc -l
ls -l | grep ^l | wc -l
Linux: count files in dir
Usefull cmd for counting files in a dir:
ls "path" | wc -l
If a specific files should be counted this works as well:
ls "path/filename_*" | wc -l
Close and re-open tickets from tests: Fogbugz PHPUnit TicketListener | Olle Jonssons blog
Direct integration of Fogbugz into PHPUnit. Whenever af test fail the corrosponding case will reopen.
Close and re-open tickets from tests: Fogbugz PHPUnit TicketListener | Olle
Ubuntu 11.10 GNOME Shell Guide
Install the gnome shell with an official install
Ubuntu 11.10 GNOME Shell Guide.
Installing / Using Classic GNOME Desktop In Ubuntu 11.10 Oneiric Ocelot ~ Web Upd8: Ubuntu / Linux blog
sudo apt-get install gnome-session-fallback