Posts

Showing posts from October, 2016

Mass change timezone of all sites in WordPress Multisite

I would use the  wp-cli  command line tool to reset timezone of all sites in my WordPress Multisite. For example to GMT+7 wp site list --field=url --allow-root | xargs -n1 -I {} sh -c 'wp --url={} option update gmt_offset 7 --allow-root'

A great moment

Image

Compress PDF file

Image
This is the only solution that works for me in reducing the pdf file size: Usage: 1. In the  command line: $ ./compresspdf.sh mypdf.pdf 2. The command opens a GUI interface, select Screen-view only (72dpi) and click OK  3. Beautiful

Convert multiple PDF files to JPG in Ubuntu

Quite easy: for filename in /path/to/*.pdf; do convert -density 300 "$filename" "$filename.jpg";done

Another quote of the day

“The effect you have on others is the most valuable currency there is.”  — Jim Carrey

Quote of the day

“If you rest, you rust.”  — Helen Hayes