Skip to content

Instantly share code, notes, and snippets.

View edgarsandi's full-sized avatar
👋
Hi there

Edgar R. Sandi edgarsandi

👋
Hi there
View GitHub Profile
@edgarsandi
edgarsandi / deprecated_functions_directives.sh
Created April 1, 2013 17:20
Script to find deprecated functions and directives
#!/bin/bash
#
# PHP 5.3 Deprecated function checker
#
# Version: 0.0.3
#
# Author: Michiel Roos <[email protected]>
#
# www.php.net/manual/en/migration53.deprecated.php
#
@edgarsandi
edgarsandi / gist:6302898
Last active August 31, 2022 18:23 — forked from fluxsauce/gist:5282006
install from phpbrew
# Make sure the prerequisites are installed.
sudo apt-get -y install autoconf automake curl build-essential libxslt1-dev re2c libxml2-dev bison
# If don't have installed php use:
sudo apt-get install php5 php5-dev php-pear php5-mysql php5-intl php5-mcrypt php5-sqlite php5-xdebug php5-xmlrpc php5-xsl php5-xcache php5-memcache libxslt1-dev
# Install php archiver
sudo pear install PHP_Archive-alpha
# Install PHP 5 dependencies.
@edgarsandi
edgarsandi / gist:6314718
Last active December 21, 2015 13:48
PHP 5.5.3 compiled with pthread and pcntl
http://docs.moodle.org/22/en/Compiling_PHP_from_source
apt-get install \
libxml2 \
libxml2-dev \
libssl-dev \
pkg-config \
curl \
libcurl4-nss-dev \
enchant \
@edgarsandi
edgarsandi / gist:6347497
Created August 26, 2013 22:37
mover home
$ cat /proc/partitions
$ mkdir root
$ mkdir home
$ sudo mount /dev/sda1 root/
$ sudo mount /dev/sda5 home/
$ cd root/
$ cd home/
$ ls
edgarsandi
$ sudo mv edgarsandi/ ~/home/
@edgarsandi
edgarsandi / Compile PHP 5.5.3 with multiprocessing and opcache
Last active December 22, 2015 11:28
Compile PHP 5.5.3 with multiprocessing and opcache
# Make sure the prerequisites are installed.
# apt-get install \
autoconf \
automake \
bison \
build-essential \
curl \
enchant \
git \
php5-dev \
################## DROP BOX LINUX 64bits ################
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd
################## Terminology ##########################
sudo add-apt-repository ppa:hannes-janetzek/enlightenment-svn
sudo apt-get update
sudo apt-get install terminology
cd ~ ; curl https://raw.github.com/sebastianbergmann/php-jenkins-template/master/config.xml | java -jar jenkins-cli.jar -s http://localhost:8080 create-job tnt-provisioning
curl https://raw.github.com/edgarsandi/php-jenkins-template/master/config.xml | java -jar jenkins-cli.jar -s http://localhost:8080 create-job tnt-provisioning
# closure error phpunit
/**
* @backupGlobals disabled
*/
git filter-branch --env-filter "export [email protected] [email protected]" master
git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "Aluno" ]; then export GIT_AUTHOR_NAME="Edgar Sandi"; export [email protected]; fi; git commit-tree "$@"'
http://stackoverflow.com/questions/750172/how-do-i-change-the-author-of-a-commit-in-git
http://happygiraffe.net/blog/2009/09/01/changing-the-committer/
git remote add origin https://github.com/edgarsandi/symfony_handson.git
@edgarsandi
edgarsandi / draw.php
Last active December 30, 2015 09:39 — forked from omerida/draw.php
(New FIFA rule added)
<?php
/*
* World Cup Draw Example.
*
* Using Array functions & SPL Iterators to simulate (simplified) World Cup draws.
*
* @author Oscar Merida <[email protected]>
* @author Edgar Sandi <[email protected]> (New FIFA rule added)
*/
# Zend Server 6.3 instalattion tutorial
http://files.zend.com/help/Zend-Server/zend-server.htm#deb_installing_zend_server.htm