Skip to content

Instantly share code, notes, and snippets.

@davethegr8
davethegr8 / deploy.sh
Last active August 29, 2015 14:16 — forked from bettin/deploy.sh
#!/bin/bash
# Requires s3cmd
# https://github.com/s3tools/s3cmd
# Variables
LIVE_BUCKET="s3://$1"
SITE_DIR='_site/' # run this script from your Jekyll root folder.
@davethegr8
davethegr8 / provision.sh
Created November 21, 2016 18:49
update php.ini
php -r '
$matches = array("short_open_tag = Off", ";error_log = syslog", "display_errors = Off", "html_errors = Off");
$replacements = array("short_open_tag = On", "error_log = syslog", "display_errors = On", "html_errors = On");
foreach(glob("/etc/php5/*/php.ini") as $file) { file_put_contents($file, str_replace($matches, $replacements, file_get_contents($file)));}
'