Skip to content

Instantly share code, notes, and snippets.

public function createGroupPage($groupId, $groupName, $groupPageTemplate = null, $groupPledgeCount = null)
{
$page = $groupPageTemplate ?: $this->groupPageTemplate;
$groupPledgeCount = ($groupPledgeCount !== null)
? $groupPledgeCount
: $this->getPledgeCountForGroupId($groupId);
$page['label'] = $groupName;
$page['name'] = $groupName;
$page['groupId'] = $groupId;
<?php
return array(
'service_manager' => array(
'factories' => array(
'rbac_navigation' => 'Authorize\NavigationGroupsFactory',
'navigation_primary' => 'Zend\Navigation\Service\DefaultNavigationFactory',
'navigation_secondary' => 'Pledgevine\Navigation\Service\SecondaryNavigationFactory',
),
),
<?php
namespace Authorize\Provider;
use BjyAuthorize\Provider\Role\ProviderInterface;
use BjyAuthorize\Provider\Role\Config;
class RoleProvider extends AbstractDbProvider implements ProviderInterface
{
protected $tableName = "group_roles";
@nclundsten
nclundsten / gist:9190859
Created February 24, 2014 15:48
load area of desktop in a window for hangouts/etc
ffmpeg -f x11grab -s 1920x1080 -r 2 -i :0.0+1366,0 -pix_fmt yuv420p -f rawvideo - | ffplay -f rawvideo -pixel_format yuv420p -video_size 1920x1080 -
<?php
class GroupTrack_Auth_Adapter_DbTableBcrypt extends Zend_Auth_Adapter_DbTable
{
/**
* _authenticateCreateSelect() - This method creates a Zend_Db_Select object that
* is completely configured to be queried against the database.
*
* @return Zend_Db_Select
*/
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1dHgWQCfPmAMMPDPeHr4RcvSpdUaAwyC0Szl6n73fDF7KZEk3cPlp6MSmrMEW4kti81zBSuWayloqkadadkRrXa02P6UAJKfpQtQJoCpDtWgroDzBQ8G6VjouRbqiLz58hUp0K1XbxrxEEIJX46HhlhkkQMBa7YLeg0roiYPEpcsLWrLPTe8xAFLU+6mh0cwFP0/BjUFiAUj2Issa6ZqodkBhLbCgtDmNCpKBulW7/WIIZJ1jkGez60Y2qEp0xhWVpfjQM7RAXixPBQvJ0zIKuB4CHR9z13hdBAlP8UT6bjo6+9asW6QOcskPcpR9smwxoi6Ok4KXyoSM73BRiZrF [email protected]
12032007421
12032007426
12032007429
12032007430
12032007433
12032007434
12032007436
12032007438
12032007441
12032007445
; Start a new pool named 'www'.
[www]
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses on a
; specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nlundsten;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;