Skip to content

Instantly share code, notes, and snippets.

Jonathan Hussey husseycoding

View GitHub Profile
@husseycoding
husseycoding / syncmagento.sh
Last active Apr 27, 2019
A bash script for syncing Magento 1 databases
View syncmagento.sh
#!/bin/bash
#### - log function - ####
function logoutput {
case $output in
t)
echo "$(date): $1"
;;
b)
echo "$(date): $1"
echo "$(date): $1" >> var/log/syncmagento.log
@husseycoding
husseycoding / hhvm.conf
Created Aug 22, 2014
HHVM 3.2 upstart script
View hhvm.conf
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
You can’t perform that action at this time.