This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update -y && sudo apt-get install imagemagick -y && sudo apt-get install php5-imagick -y && sudo add-apt-repository ppa:dhor/myway -y && sudo apt-get update -y && sudo apt-get install graphicsmagick -y && sudo apt-get install libgraphicsmagick1-dev -y && sudo pecl install gmagick-1.1.1RC1 | |
sudo vim /etc/php5/fpm/php.ini | |
extension=/usr/lib/php5/20121212/gmagick.so | |
extension=/usr/lib/x86_64-linux-gnu/ImageMagick-6.7.7/modules-Q16/coders/magick.so | |
extension=/usr/lib/php5/20121212/imagick.so | |
/home/gfb/app/wp/wp-content/ewww |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DOC_URL = process.argv[2]; | |
const puppeteer = require('puppeteer'); | |
const fs = require('fs'); | |
const readabilityJsStr = fs.readFileSync('node_modules/readability/Readability.js', {encoding: 'utf-8'}) | |
function executor() { | |
return new Readability({}, document).parse(); | |
} |
OlderNewer