Skip to content

Instantly share code, notes, and snippets.

View chanmix51's full-sized avatar

Grégoire HUBERT chanmix51

View GitHub Profile
$ sudo apt-get install postgresql
$ sudo -i -u postgres
CREATE USER elcaro;
ALTER ROLE elcaro WITH CREATEDB;
CREATE DATABASE "ElCaro" OWNER elcaro;
ALTER USER elcaro WITH ENCRYPTED PASSWORD 'elcaro';
\q
$ postgres@computer:~$ exit
@chanmix51
chanmix51 / UniversalClassLoaderChecker.php
Created April 28, 2011 07:51 — forked from docteurklein/UniversalClassLoaderChecker.php
a class to check classLoader configuration
<?php
namespace Symfony\Component\ClassLoader;
class UniversalClassLoaderChecker
{
public function check(UniversalClassLoader $classLoader)
{
return array_merge(
$this->checkNamespaces($classLoader),
@chanmix51
chanmix51 / .gitconfig
Created February 22, 2011 18:06 — forked from marcw/.gitconfig
lint = "!sh -c 'git status | awk \"/modified/ {print \\$3}\" | xargs -L 1 php -l'"