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
#Wordpress Sheet | |
#For verifying Core wordpress files | |
wp core verify-checksums | |
#For restricting auto update of wordpress | |
define( 'WP_AUTO_UPDATE_CORE', false ); | |
#For increasing memory limit | |
define('WP_MEMORY_LIMIT', '256M'); |
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
<!-- | |
/* | |
* Serverless contact form handler for Cloudflare Workers. | |
* Emails are sent via Mailgun. | |
* | |
* Learn more at https://maxkostinevich.com/blog/serverless-contact-form | |
* Live demo: https://codesandbox.io/s/serverless-contact-form-example-x0neb | |
* | |
* (c) Max Kostinevich / https://maxkostinevich.com | |
*/ |
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
var gm = require('gm'); | |
// Create JPG from page 0 of the PDF | |
gm("file.pdf[0]") // The name of your pdf | |
.setFormat("jpg") | |
.resize(200) // Resize to fixed 200px width, maintaining aspect ratio | |
.quality(75) // Quality from 0 to 100 | |
.write("/tmp/cover.jpg", function(error){ | |
// Callback function executed when finished | |
if (!error) { |
NewerOlder