How To Increase WordPress Memory After PHP Fatal error: Allowed memory size exhausted

Author: , Posted on Monday, February 13th, 2017 at 1:49:30pm

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 277644940 bytes) in /volumes/data/customer/wordpress/wp-content/plugins/searchwp/vendor/pdfparser/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php on line 72, referer: http://dev.thecustomer.com/index.php?swpnonce=1387006674.5392169952592578125000

To increase the PHP memory limit to 256MB, edit wp-config.php and add the following just before the line that says "That's all, stop editing! Happy blogging.":

1
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MEMORY_LIMIT', '256M' );

How To rsync Only Specific File Extensions

Author: , Posted on Sunday, February 5th, 2017 at 12:20:37pm

rsync -avzn --progress --include='*.png' --include='*/' --exclude='*' /the/source/path/ user@theServer:/the/target/path/

How To Reduce the Size of a PDF Using Ghostscript

Author: , Posted on Saturday, February 4th, 2017 at 3:26:48pm

Make sure you have Ghostscript installed, then:

1
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS="/ebook" -sOutputFile=output.pdf input.pdf
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS="/ebook" -sOutputFile=output.pdf input.pdf

-dPDFSETTINGS={value} where {value} is one of:

/screen – the lowest resolution and lowest file size, fine for viewing on a screen
/ebook – mid-range resolution and file size
/printer – high-quality setting used for printing PDFs
/prepress – high-quality setting used for printing PDFs

As always, YMMV…

How To Send Email From the Command Line on MacOSX 10.10.5 Yosemite

Author: , Posted on Sunday, January 29th, 2017 at 9:44:55am

myszaI wanted to send email from cron for various reasons, but the emails would bounce with an error 554:
554 5.1.8 : Sender address rejected: Domain not found

Clearly, Postfix was using the “internal” hostname of myappledesktop.local (MacOSX has TWO hostnames! also, myappledesktop.local is not the real hostname ;-).

So, I needed two things:
1. a public FQDN in DNS that mail servers could see and resolve properly
2. to set the sending hostname to that FQDN

For the first, I used my DNS server to create a FQDN with home’s public IP address: myappledesktop.thewyz.net

Then, I edited the Postfix configuration file and set the sending hostname manually:

1
2
vim /etc/postfix/main.cf
myhostname = myappledesktop.thewyz.net
vim /etc/postfix/main.cf
myhostname = myappledesktop.thewyz.net

That did the trick!

No need to run `postfix reload`, since postfix only runs on-demand, not as a daemon.

As always, YMMV…

R.I.P. Sir John Hurt

Author: , Posted on Saturday, January 28th, 2017 at 7:43:52am
Sir John Vincent Hurt, CBE was an English actor and voice actor whose career spanned six decades.  Born: January 22, 1940, Chesterfield, United Kingdom Died: January 27, 2017, London, United Kingdom

Sir John Vincent Hurt, CBE was an English actor and voice actor whose career spanned six decades.
Born: January 22, 1940, Chesterfield, United Kingdom
Died: January 27, 2017, London, United Kingdom

R.I.P. Miguel Ferrer

Author: , Posted on Friday, January 20th, 2017 at 9:59:44am
Miguel Ferrer Born: February 7, 1955, Santa Monica, CA Died: January 19, 2017, Los Angeles, CA of throat cancer Age: 61 Parents: Rosemary Clooney, José Ferrer

Miguel Ferrer
Born: February 7, 1955, Santa Monica, CA
Died: January 19, 2017, Los Angeles, CA of throat cancer
Age: 61
Parents: Rosemary Clooney, José Ferrer

nintchdbpict000001610746

R.I.P. Ringling Bros. and Barnum & Bailey Circus

Author: , Posted on Sunday, January 15th, 2017 at 8:33:04am

ap7003061160

R.I.P. William Christopher

Author: , Posted on Sunday, January 1st, 2017 at 9:30:05am

Mash - 1972-1983
Scene from M*A*S*H

R.I.P. Debbie Reynolds

Author: , Posted on Thursday, December 29th, 2016 at 8:40:23am

1280_debbie_reynolds_singin_in_the_rain_MGM

R.I.P. Carrie Fisher

Author: , Posted on Wednesday, December 28th, 2016 at 8:02:20am

carrie-fisher-star-wars-c7315baa-c949-4116-99f6-73d244d4c955