convert pdfs to jpgs

for i in `/bin/ls | grep -i pdf` ; do ( nn=`echo $i | cut -f1 -d"."` ;      convert -density 150 $i -quality 85 $nn.jpg ) ;  done

Setting the PHP version

  How to force a specific version of php on linux: Let's say you want to force the linux machine to use php 7.2 specifically Do this: sudo add-apt-repository -y ppa:ondrej/php sudo apt-get install php7.2 php7.2-cli php7.2-common now tell apache: sudo a2dismod php5.6 sudo a2enmod php7.2 sudo service apache2 restart now tell bash: sudo update-alternatives --set php /usr/bin/php7.2 sudo update-alternatives --set phar /usr/bin/phar7.2 sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.2

reduce email address harvesting

 It's generally a bad idea to put an email address on a website. You generally want a contact form with a captcha to avoid spam submissions, and you want to geolock the contact form to only relevant countries. If you aren't fulfilling orders outside your country, simply geolock the contact form. I'd suggest the wordpress plugin IQ block country. If however it's not an option and you need an email address on your website, you can use HTML or an image to confound the crawlers. Unfortunately they will see the "mailto:" HTML code so you have to remove that. So your email address would have to be non-clickable but at least human-readable. To do this, replace space and "at" with HTML character codes, like so: name &nbsp;&#064;&nbsp; domain the part &nbsp; puts a nonbreaking space after the local-part (the part before the at) and after it. The  &#064;  is the at-sign. You can also replace  &nbsp;  with this: <span style="widt

The purpose of this blog

 The purpose of this blog is to log useful tips for webmasters.