Skip to content

Instantly share code, notes, and snippets.

View virusvn's full-sized avatar

Nhan Nguyen virusvn

View GitHub Profile
fastcgi_split_path_info ^(.*\.php)(.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTP_HOST $host;
fastcgi_param SERVER_NAME $host;
fastcgi_intercept_errors on;
fastcgi_index index.php;
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
USER="nodejs"
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
USER="nodejs"
@virusvn
virusvn / gist:4124142
Created November 21, 2012 10:25
check permission
$presenterName = Rights::module()->presenterName;
$isPresenter = false;
foreach($rights as $r){
if($r->name == $presenterName){
$isPresenter = true;
}
}
@virusvn
virusvn / checkPresenter.php
Created November 19, 2012 09:30
checkPresenter
$presenterName = Rights::module()->presenterName;
$isPresenter = false;
foreach($rights as $r){
if($r->name == $presenterName){
$isPresenter = true;
}
}