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 / gist:1eee2737d49f5f3dc764
Last active August 29, 2015 14:15
uniform-variable-syntax
<?php
$a = function($param) {
return function() use ($param) {
return function() use($param) {
return ++$param;
};
};
};
echo $a(45)()() . PHP_EOL;
Edgar Rodrigues Sandi
Edgar Sandi
tw/@EdgarSandi
fb/EdgarSandi
G+/EdgarSandi
Ln/EdgarSandi
Oracle PL/SQL - 24h
Aula 1 - 17/01
-- Resposta do lab
-- tabela categorias
CREATE TABLE tb_categorias(
cd_categoria NUMBER(3) PRIMARY KEY,
nm_categoria VARCHAR2(50) NOT NULL
);
-- Tabela cursos
CREATE TABLE tb_cursos(
cd_curso NUMBER(5) PRIMARY KEY,
Edgar Rodrigues Sandi
@EdgarSandi
Oracle PL/SQL
6 aulas
05/08
07/08
12/08
14/08
19/08
# Zend Server 6.3 instalattion tutorial
http://files.zend.com/help/Zend-Server/zend-server.htm#deb_installing_zend_server.htm
@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)
*/
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
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
*/
################## 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
@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 \