Skip to content

Instantly share code, notes, and snippets.

View bendo01's full-sized avatar

Benny Leonard Enrico Panggabean bendo01

View GitHub Profile
@bendo01
bendo01 / gist:2384730
Created April 14, 2012 14:23 — forked from tanakahisateru/gist:1344162
PHP5.4 configure with MacPorts besides existing PHP
./configure \
--prefix=/opt/local/php/5.4 \
--bindir=/opt/local/bin \
--with-config-file-path=/opt/local/php/5.4/etc \
--with-config-file-scan-dir=/opt/local/php/5.4/var/db \
--mandir=/opt/local/php/5.4/share/man \
--infodir=/opt/local/php/5.4/share/info \
--program-suffix=-5.4 \
--with-apxs2=/opt/local/apache2/bin/apxs \
--enable-pdo \
@bendo01
bendo01 / proxy_nginx.sh
Created April 18, 2012 10:45 — forked from rdegges/proxy_nginx.sh
Create a HTTP proxy for jenkins using NGINX.
sudo aptitude -y install nginx
cd /etc/nginx/sites-available
sudo rm default
sudo cat > jenkins
upstream app_server {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80;
@bendo01
bendo01 / execute testing
Created April 19, 2012 13:42
cakephp executed testing shell on jenkins
/opt/local/bin/php /opt/local/www/ikemek/app/Console/cake.php testsuite app AllModel --stderr --log-junit webroot/jenkins/junit.xml --coverage-clover webroot/jenkins/clover.xml
@bendo01
bendo01 / nginx_jenkins.conf
Created April 19, 2012 15:29
nginx and jenkins
#user nobody;
worker_processes 4;
worker_rlimit_nofile 8192;
worker_priority 0;
events {
multi_accept off;
worker_connections 1024;
}
@bendo01
bendo01 / jenkins shell execute
Created April 20, 2012 14:03
jenkins shell execute
1. /opt/local/bin/php /opt/local/www/ikemek/app/Console/cake.php ApiGenerator.ApiIndex update
2. /opt/local/bin/php /opt/local/www/ikemek/app/Console/cake.php testsuite app AllModel --stderr --log-junit webroot/jenkins/junit.xml --coverage-clover webroot/jenkins/clover.xml
3. pdepend --summary-xml=/opt/local/www/ikemek/app/webroot/jenkins/summaryIkemek.xml --jdepend-chart=/opt/local/www/ikemek/app/webroot/jenkins/jdependIkemek.svg --overview-pyramid=/opt/local/www/ikemek/app/webroot/jenkins/pyramidIkemek.svg /opt/local/www/ikemek/app
4. phpcs /opt/local/www/ikemek/app/model --report-xml=/opt/local/www/ikemek/app/webroot/jenkins/codeSnifferReportIkemek.xml
@bendo01
bendo01 / build.xml
Created May 1, 2012 16:09 — forked from vitorpacheco/build.xml
Jenkins + CakePHP
<?xml version="1.0" encoding="UTF-8"?>
<project name="name-of-project" default="build">
<target name="build"
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdoc,phpcb"/>
<target name="build-parallel"
depends="prepare,lint,tools-parallel,phpcb"/>
<target name="tools-parallel"
@bendo01
bendo01 / build.xml
Created May 2, 2012 19:43
Ant / Jenkins / CakePHP build file ikemekContinuousIntegration build and setting, put build.xml in /Users/Shared/Jenkins/Home/jobs/ikemekContinuousIntegration and specify build.xml in job setting, dont forget to chmod -R 777 App/tmp
<?xml version="1.0" encoding="UTF-8"?>
<project name="ikemekContinuousIntegration" default="build" basedir="/Users/Shared/Jenkins/Home/jobs/ikemekContinuousIntegration/workspace">
<target name="build" depends="prepare,lintModel,lintController,cakeJUnitAndClover,cakeGenerateCoverageHtml,phploc,pdepend,phpcpd,phpcs,cakeGenerateApiHtml"/>
<target name="build-parallel" depends="prepare,tools-parallel"/>
<target name="tools-parallel" description="Run tools in parallel">
<parallel threadCount="2">
@bendo01
bendo01 / nginx.conf
Created May 3, 2012 12:47
nginx config jenkins
#user nobody;
worker_processes 4;
worker_rlimit_nofile 8192;
worker_priority 0;
events {
multi_accept off;
worker_connections 1024;
}
@bendo01
bendo01 / php.ini
Created May 3, 2012 15:33
my php.ini config
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@bendo01
bendo01 / php54_php53_pear_macports.markdown
Created June 8, 2012 08:21 — forked from jbeduya/php54_php53_pear_macports.markdown
Installing PHP 5.4 and 5.3 side by side on Max OSX via MacPorts

##Given Apache 2 and MySQL are already installed.

#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated

#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules