Skip to content

Instantly share code, notes, and snippets.

View dbpolito's full-sized avatar

Daniel Polito dbpolito

View GitHub Profile
@fideloper
fideloper / install.sh
Last active October 30, 2023 20:03
Vagrant Provisioning Script for PHP applications. This installs a LAMP stack.
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
@netojoaobatista
netojoaobatista / Manifesto.md
Created October 12, 2012 14:08
Manifesto para compartilhamento, colaboração e crescimento dos indivíduos, em um grupo de discussão.

Manifesto

Nós estamos aqui para compartilhar conhecimento. Para ensinar, na mesma proporção que aprendemos. Para guiar nos melhores caminhos aqueles que estão iniciando, na mesma proporção que somos guiados por aqueles que começaram antes de nós. Nós estamos aqui com o intúito de crescer, amadurecer, de tornarmos pessoas melhores.

Não obstante, nós acreditamos na dúvida. Acreditamos veementemente nas discussões fundamentadas. Acreditamos nisso pois, por não determos a verdade absoluta, acreditamos que opiniões divergentes, convergem para o crescimento de todo o grupo.

Princípios para uma boa publicação.

@dbpolito
dbpolito / Localhost.md
Created April 12, 2012 01:51
Configurating an eXtheme LAMP localhost on Ubuntu

Configurating Localhost

Install Apache, MySQL and PHPMyAdmin

sudo apt-get install apache2 mysql-server-5.5 php5 php5-mysql php5-curl php-pear phpmyadmin
sudo cp -Rf /usr/share/phpmyadmin/ /var/www
sudo chown -R www-data. /var/www

Install PHPUnit

sudo apt-get install curl php5-xdebug phpunit
@shadowhand
shadowhand / .gitconfig
Created December 15, 2011 20:33
Complex Git Aliases
[alias]
co = checkout
st = status
ci = commit
rb = rebase
rank = shortlog -sn --no-merges
amend = commit --amend -C HEAD
vr = !sh -c \"git svn fetch && git svn rebase\"
vc = !sh -c \"git vr && git svn dcommit\"
ex = !sh -c \"git checkout-index -a -f --prefix=$1\"
@augustohp
augustohp / SingletonPattern.php
Created October 3, 2011 18:23
PHP Singleton implementation example
<?php
class SingletonPattern
{
private static $instance;
private function __construct()
{
}
@augustohp
augustohp / svn2git.sh
Created June 13, 2011 22:33
SVN to GIT migration shell script
#!/bin/sh
# Migrates a SVN repository to a git repository.
#
# Author: Augusto Pascutti <augusto@phpsp.org.br>
COMMAND=$0;
SVN=`which svn 2> /dev/null`;
GIT=`which git 2> /dev/null`;
READER="";
RETURN="";
@iansheridan
iansheridan / git-cheat-sheet.md
Created March 15, 2011 14:25
A cheat sheet for GIT

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file: