Skip to content

Instantly share code, notes, and snippets.

View yuya-matsushima's full-sized avatar
🏢
Working from Office

Yuya Matsushima yuya-matsushima

🏢
Working from Office
View GitHub Profile
@jcc2010
jcc2010 / Assets.php
Created April 18, 2011 23:53
A quick assets file to give you control over header and footer templates with codeigniter. Not fully documented (yet) but should be relatively easy to figure out how to get access from your controller to tpl.view files.
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Assets
{
var $ci;
var $siteTitle;
var $siteJSPath;
var $siteCSSPath;
var $siteImgPath;
@mhayes
mhayes / supervisord.sh
Created March 12, 2011 01:13 — forked from danmackinlay/supervisord.sh
init.d for supervisord for Amazon Linux AMI
#!/bin/sh
# Amazon Linux AMI startup script for a supervisor instance
#
# chkconfig: 2345 80 20
# description: Autostarts supervisord.
# Source function library.
. /etc/rc.d/init.d/functions
supervisorctl="/usr/bin/supervisorctl"