Skip to content

Instantly share code, notes, and snippets.

View zoghal's full-sized avatar
🏠
Working from home

Saleh Souzanchi zoghal

🏠
Working from home
View GitHub Profile
@zoghal
zoghal / WelcomesController.php
Last active August 29, 2015 14:19
WelcomesController.php
<?php
namespace App\Controller;
use App\Controller\AppController;
class WelcomesController extends AppController{
public function index( ){
$this->set('msg', 'Hello');
}
}
# Install dependencies
#
# * checkinstall: package the .deb
# * libpcre3, libpcre3-dev: required for HTTP rewrite module
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \
OLD_DIR=`pwd` && \
WDIR=~/sources/ && \
OPENSSL_VER=1.0.2 && \
# Install dependencies
#
# * checkinstall: package the .deb
# * libpcre3, libpcre3-dev: required for HTTP rewrite module
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \
OLD_DIR=`pwd` && \
WDIR=~/sources/ && \
OPENSSL_VER=1.0.2 && \
# Install dependencies
#
# * checkinstall: package the .deb
# * libpcre3, libpcre3-dev: required for HTTP rewrite module
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \
OLD_DIR=`pwd` && \
WDIR=~/sources/ && \
OPENSSL_VER=1.0.1h && \
#!/bin/bash
#
# Nginx build script - [email protected]
#
# Updates code from git/hg repos (or clones if it doesn't exist) for both
# nginx and extra modules, then fires off make
#
# Revision: 3
#
PREFIX="/usr"
@zoghal
zoghal / nginx-update
Last active August 29, 2015 14:17 — forked from MikeWilkie/nginx-update
cd ~/git/nginx
rm -rf nginx-1*
rm -rf openssl-1*
wget https://www.openssl.org/source/openssl-1.0.1k.tar.gz
wget http://nginx.org/download/nginx-1.7.10.tar.gz
tar xzvf openssl* && rm -rf openssl-1.0.1k.tar.gz
tar -xzvf nginx-1*.tar.gz
rm -rf nginx-1*.tar.gz
cd echo-nginx-module && git pull && cd ../
cd headers-more-nginx-module && git pull && cd ../
#!/usr/bin/env bash
# names of latest versions of each package
export VERSION_PCRE=pcre-8.36
export VERSION_LIBRESSL=libressl-2.1.3
export VERSION_NGINX=nginx-1.7.10
export VERSION_NGINX=nginx-$NGINX_VERSION
# URLs to the source directories for each package
export SOURCE_LIBRESSL=ftp://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
#!/bin/bash
### build nginx as a static binary with most recent libraries.
### depends on sha256sum, tar and curl.
NGINX_VERSION="${NGINX_VERSION:-1.7.6}"
NGINX_SHA256="${NGINX_SHA256:-08e2efc169c9f9d511ce53ea16f17d8478ab9b0f7a653f212c03c61c52101599}"
NGINX_OPENRESTY_VERSION="${NGINX_OPENRESTY_VERSION:-1.7.7.1}"
NGINX_OPENRESTY_SHA256="${NGINX_OPENRESTY_SHA256:-e00b038945ca198eca7424026ccade0f8a5ad95b8aa40c5c2961684fc50ca4d4}"
#!/usr/bin/env bash
# names of latest versions of each package
export NGINX_VERSION=1.7.10
export VERSION_PCRE=pcre-8.36
export VERSION_LIBRESSL=libressl-2.1.3
export VERSION_NGINX=nginx-$NGINX_VERSION
# URLs to the source directories
export SOURCE_LIBRESSL=ftp://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
#!/bin/bash
set -e
NGINX_VERSION="1.6.0"
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
PCRE_VERSION="8.34"
PCRE_TARBALL="pcre-${PCRE_VERSION}.tar.gz"
OPENSSL_VERSION="1.0.1g"
OPENSSL_TARBALL="openssl-${OPENSSL_VERSION}.tar.gz"