Skip to content

Instantly share code, notes, and snippets.

/*
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes.
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed
*
* Usage:
* $ casperjs screenshots.js http://example.com
*/
var casper = require("casper").create();
1) Get the latest available packages
sudo apt-get update
2) Install PHP7 and relevant extensions
Core PHP:
sudo apt-get install php7.0-fpm php7.0-cli php7.0-common php7.0-curl
Extensions needed for Craft:
@InTheScript
InTheScript / readme.md
Created March 14, 2020 20:27 — forked from jeop10/readme.md
Backup MySQL to Amazon S3 using AWS CLI

Backup MySQL to Amazon S3 using AWS CLI

Based on this awesome gist

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-) ** Using the AWS CLI (aws command) **

1 - Install aws-cli more info on the official repo

Install aws-cli