Skip to content

Instantly share code, notes, and snippets.

@leosco
leosco / nginx.conf
Last active January 23, 2019 01:14
Nginx multi-core node processes w/ SSL termination and port 80 to 443 redirect; a config template
# one worker per CPU
worker_processes 4;
events {
# 256 times the number of CPUs you're using
worker_connections 1024;
}
http {
# websockets upgrade mapping
@rmarscher
rmarscher / Modules.php
Last active August 29, 2015 13:58
Joomla! Template Module Positions In Lithium PHP
<?php
namespace app\extensions\helper;
use lithium\core\Libraries;
use lithium\template\view\TemplateException;
use lithium\template\View;
/**
* An implementation of Joomla! template module positions for Lithium.