Skip to content

Instantly share code, notes, and snippets.

@olsgreen
olsgreen / supervisord.conf
Created December 24, 2013 13:35
Supervisord Program Example
[program:myqueue]
command=php artisan queue:listen --env=your_environment
directory=/path/to/laravel
stdout_logfile=/path/to/laravel/app/storage/logs/myqueue_supervisord.log
redirect_stderr=true
@olsgreen
olsgreen / ghost.sh
Created December 15, 2013 11:01
CentOS Ghost Init Script.Requires daemonize to run.
#!/bin/sh
#
# ghost - this script starts and stops the ghost npm daemon
#
# chkconfig: - 85 15
# description: Ghost - just another blog
# processname: ghost
# pidfile: /var/run/ghost.pid
# Source function library.
@olsgreen
olsgreen / jquery.table-sorter.js
Last active December 31, 2015 07:59
Simple jQuery Table Sorter
/**
* Simple jQuery Table Sorter
*/
(function($){
$(document).ready(function(){
// Table Sorter
$('table.sortable').each(function () {