clfwidget([{"id":"7224","command":"lynx --dump http:\/\/www.commandlinefu.com\/commands\/random\/plaintext | grep .","summary":"Retrieve a random command from the commandlinefu.com API","votes":"2","url":"http:\/\/www.commandlinefu.com\/commands\/view\/7224\/retrieve-a-random-command-from-the-commandlinefu.com-api"},{"id":"6047","command":"cssh 192.168.125.{1..200}","summary":"Combine cssh and shell expansion to execute commands on a large cluster","votes":"2","url":"http:\/\/www.commandlinefu.com\/commands\/view\/6047\/combine-cssh-and-shell-expansion-to-execute-commands-on-a-large-cluster"},{"id":"5563","command":"\/etc\/init.d\/cron restart && tail -100 \/var\/log\/syslog","summary":"Check syntax of cron files (by restarting the service and checking the logs)","votes":"-7","url":"http:\/\/www.commandlinefu.com\/commands\/view\/5563\/check-syntax-of-cron-files-by-restarting-the-service-and-checking-the-logs"},{"id":"2323","command":"gmetric -n $METRIC_NAME -v foo -t string -d 10","summary":"Remove an old gmetric statistic","votes":"-1","url":"http:\/\/www.commandlinefu.com\/commands\/view\/2323\/remove-an-old-gmetric-statistic"},{"id":"2311","command":"grep -PL \"\\t\" -r . |  grep -v \".svn\" | xargs sed -i 's\/\\t\/    \/g'","summary":"Replace all tabs with spaces in an application","votes":"3","url":"http:\/\/www.commandlinefu.com\/commands\/view\/2311\/replace-all-tabs-with-spaces-in-an-application"},{"id":"2177","command":"svn log | grep \"bodge\\|fudge\\|hack\\|dirty\"","summary":"Quickly assess quality of project by greping the SVN commit logs","votes":"-4","url":"http:\/\/www.commandlinefu.com\/commands\/view\/2177\/quickly-assess-quality-of-project-by-greping-the-svn-commit-logs"},{"id":"2119","command":".\/my-really-long-job.sh && notify-send \"Job finished\"","summary":"Run a long job and notify me when it's finished","votes":"18","url":"http:\/\/www.commandlinefu.com\/commands\/view\/2119\/run-a-long-job-and-notify-me-when-its-finished"},{"id":"1575","command":"mysql --database=dbname -B -N -e \"SHOW TABLES\"  | awk '{print \"ALTER TABLE\", $1, \"CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;\"}' | mysql --database=dbname &","summary":"Convert all MySQL tables and fields to UTF8","votes":"15","url":"http:\/\/www.commandlinefu.com\/commands\/view\/1575\/convert-all-mysql-tables-and-fields-to-utf8"},{"id":"1574","command":"watch -n 1 uptime\\;myqladmin --user=<user> --password=<password> --verbose processlist","summary":"Monitor server load as well as running MySQL processes","votes":"-6","url":"http:\/\/www.commandlinefu.com\/commands\/view\/1574\/monitor-server-load-as-well-as-running-mysql-processes"},{"id":"1199","command":"tail -1000 \/some\/file | vim -","summary":"Pipe STDOUT to vim","votes":"14","url":"http:\/\/www.commandlinefu.com\/commands\/view\/1199\/pipe-stdout-to-vim"},{"id":"979","command":"ssh user@host 'mysqldump dbname | gzip' > \/path\/to\/backups\/db-backup-`date +%Y-%m-%d`.sql.gz","summary":"Backup a remote database to your local filesystem","votes":"15","url":"http:\/\/www.commandlinefu.com\/commands\/view\/979\/backup-a-remote-database-to-your-local-filesystem"},{"id":"778","command":"identify -format \"%wx%h\" \/path\/to\/image.jpg","summary":"Determine an image's dimensions","votes":"4","url":"http:\/\/www.commandlinefu.com\/commands\/view\/778\/determine-an-images-dimensions"},{"id":"768","command":"watch -n 1 mysqladmin --user=<user> --password=<password> processlist","summary":"Monitor the queries being run by MySQL","votes":"34","url":"http:\/\/www.commandlinefu.com\/commands\/view\/768\/monitor-the-queries-being-run-by-mysql"},{"id":"605","command":"xrandr --output LVDS --auto --output VGA --auto --right-of LVDS","summary":"Configure second monitor to sit to the right of laptop","votes":"6","url":"http:\/\/www.commandlinefu.com\/commands\/view\/605\/configure-second-monitor-to-sit-to-the-right-of-laptop"},{"id":"598","command":"diff <(head -500 product-feed.xml) <(head -500 product-feed.xml.old)","summary":"Generate diff of first 500 lines of two files","votes":"3","url":"http:\/\/www.commandlinefu.com\/commands\/view\/598\/generate-diff-of-first-500-lines-of-two-files"},{"id":"410","command":"cat file.php | perl -p -e 's\/(\\$|->)(str|arr|obj|int|flt|boo|bool|mix|res)([A-Z])\/$1\\L$3\/g'","summary":"Strip out Hungarian notation from a PHP file","votes":"0","url":"http:\/\/www.commandlinefu.com\/commands\/view\/410\/strip-out-hungarian-notation-from-a-php-file"},{"id":"407","command":"find . -name \"*.java\" -exec gnome-terminal \\-x vim {} \\;","summary":"Open a list of files in VIM using separate terminal windows","votes":"-5","url":"http:\/\/www.commandlinefu.com\/commands\/view\/407\/open-a-list-of-files-in-vim-using-separate-terminal-windows"},{"id":"268","command":"guid(){ lynx -nonumbers -dump http:\/\/www.famkruithof.net\/uuid\/uuidgen | grep \"\\w\\{8\\}-\" | tr -d ' '; }","summary":"GUID generator","votes":"-2","url":"http:\/\/www.commandlinefu.com\/commands\/view\/268\/guid-generator"},{"id":"49","command":"echo \"rm -rf \/unwanted-but-large\/folder\" | batch","summary":"Run a command only when load average is below a certain threshold","votes":"35","url":"http:\/\/www.commandlinefu.com\/commands\/view\/49\/run-a-command-only-when-load-average-is-below-a-certain-threshold"},{"id":"48","command":"realpath examplefile.txt","summary":"Get the full path to a file","votes":"4","url":"http:\/\/www.commandlinefu.com\/commands\/view\/48\/get-the-full-path-to-a-file"},{"id":"47","command":"ssh user@host cat \/path\/to\/remotefile | diff \/path\/to\/localfile -","summary":"Compare a remote file with a local file","votes":"117","url":"http:\/\/www.commandlinefu.com\/commands\/view\/47\/compare-a-remote-file-with-a-local-file"},{"id":"46","command":"zcat \/usr\/share\/man\/man1\/grep.1.gz | grep \"color\"","summary":"Search gzipped files","votes":"-5","url":"http:\/\/www.commandlinefu.com\/commands\/view\/46\/search-gzipped-files"},{"id":"45","command":"bind -p | grep -F \"\\C\"","summary":"Display all readline binding that use CTRL","votes":"4","url":"http:\/\/www.commandlinefu.com\/commands\/view\/45\/display-all-readline-binding-that-use-ctrl"},{"id":"43","command":"(> errors.log) && tail -f !^","summary":"Flush and then immediately start watching a file","votes":"2","url":"http:\/\/www.commandlinefu.com\/commands\/view\/43\/flush-and-then-immediately-start-watching-a-file"},{"id":"42","command":"cat \/etc\/issue","summary":"Display which distro is installed","votes":"53","url":"http:\/\/www.commandlinefu.com\/commands\/view\/42\/display-which-distro-is-installed"}])
