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) **
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) 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: |
/* | |
* 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(); |
<!DOCTYPE html> | |
<meta charset=utf-8> | |
<meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<meta name=apple-mobile-web-app-capable content=yes> | |
<meta name=apple-mobile-web-app-status-bar-style content=black> | |
<title>Test fullscreen</title> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; |
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
# setup vagrant | |
gem install vagrant | |
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box | |
mkdir my_vagrant_test | |
cd my_vagrant_test | |
vagrant init lucid32 | |
vim Vagrantfile | |
vagrant up | |
vagrant ssh |