Skip to content

Instantly share code, notes, and snippets.

View ZermattChris's full-sized avatar

Chris Banford ZermattChris

  • Zermatt Switzerland
View GitHub Profile
@ZermattChris
ZermattChris / vhost-template
Created October 21, 2013 18:28
Part of the vhost.sh script. Copy to /etc/apache2/sites-available
<VirtualHost *:80>
ServerAdmin webmaster@your-project.com
DocumentRoot /var/www/template.projectname/public_html
ServerName template.url
ErrorLog "/var/www/template.projectname/logs/error.log"
CustomLog "/var/www/template.projectname/logs/access.log" common
</VirtualHost>
#!/bin/bash
# Fix Windows line endings.
#dos2unix ~/./projects/BashServerScripts/vhost.sh
# Requires: Adding the 'vhost-template' file to /etc/apache2/sites-available
#TODO: Finish up the --help section once the script proves itself a wee bit.
##### Colors #####
BOLD=`tput bold`
@ZermattChris
ZermattChris / gist:3090109
Created July 11, 2012 12:37
InvalidArgumentException: Unable to load class "Twig_Environment"
InvalidArgumentException: Unable to load class "Twig_Environment"
1. in /home/chris/projects/OTP/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php line 251
2. at ClassCollectionLoader::getOrderedClasses(array('JMS\DiExtraBundle\HttpKernel\ControllerResolver', 'Monolog\Formatter\FormatterInterface', 'Monolog\Formatter\LineFormatter', 'Monolog\Handler\AbstractHandler', 'Monolog\Handler\AbstractProcessingHandler', 'Monolog\Handler\FingersCrossedHandler', 'Monolog\Handler\HandlerInterface', 'Monolog\Handler\StreamHandler', 'Monolog\Handler\TestHandler', 'Monolog\Logger', 'Symfony\Bridge\Monolog\Handler\DebugHandler', 'Symfony\Bridge\Monolog\Logger', 'Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser', 'Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver', 'Symfony\Bundle\FrameworkBundle\EventListener\SessionListener', 'Symfony\Bundle\FrameworkBundle\HttpKernel', 'Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher', 'Symfony\Bundle\FrameworkBundle