Skip to content

Instantly share code, notes, and snippets.

View husseycoding's full-sized avatar

Jonathan Hussey husseycoding

View GitHub Profile
@husseycoding
husseycoding / hhvm.conf
Created August 22, 2014 06:06
HHVM 3.2 upstart script
description "HHVM auto start and respawn"
author "Jonathan Hussey <info@husseycoding.co.uk>"
start on runlevel [2345]
stop on runlevel [016]
respawn
exec /usr/bin/hhvm --config /etc/hhvm/php.ini --config /etc/hhvm/server.ini --user www-data --mode daemon -vPidFile=/var/run/hhvm/pid
@husseycoding
husseycoding / syncmagento.sh
Last active April 27, 2019 20:13
A bash script for syncing Magento 1 databases
#!/bin/bash
#### - log function - ####
function logoutput {
case $output in
t)
echo "$(date): $1"
;;
b)
echo "$(date): $1"
echo "$(date): $1" >> var/log/syncmagento.log