Skip to content

Instantly share code, notes, and snippets.

View amcorreia's full-sized avatar
🎯
Focusing

Alessandro Madruga Correia amcorreia

🎯
Focusing
  • Depressive world
View GitHub Profile
@amcorreia
amcorreia / php-qa
Created April 11, 2014 13:01
php code assurance
This is a composer meta package for installing PHP Quality Assurance Tools with only one dependency. Only stable packages are used, to keep the configuration easy and secure.
Included in this package are:
PHPUnit
PHP-Invoker
DbUnit
PHPLOC

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).

@amcorreia
amcorreia / awesome-php.md
Created April 11, 2014 04:36 — forked from SergSlon/awesome-php.md
List of amazingly awesome PHP libraries

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

From: http://robots.thoughtbot.com/keeping-a-github-fork-updated
# CLONE
git clone git@github.com:croaky/dotfiles.git
cd dotfiles
git remote add upstream git@github.com:thoughtbot/dotfiles.git
# UPDATE
amcorreia@dev emacs-el [master] $ cat calendar-google.el
;; 1) go to Google Calendar UI
;; 2) go to "Settings" link on top right corner
;; 3) choose the "Calendars" tab
;; 4) click on the calendar you want to obtain the magic cookie
;; 5) scroll to the bottom, you will see a row that says "Private Address" and the green button "ICAL" is the link to your magic cookie private ics URL
(defvar my-ical-private-google

(originally from: http://elytra.net/2011/03/31/hello-world/)

Howto

Install nginx+PHP:

brew install https://raw.github.com/ampt/homebrew/php/Library/Formula/php.rb --with-fpm --with-mysql --enable-cgi
brew install nginx
@amcorreia
amcorreia / killtcp.md
Created April 8, 2014 22:47 — forked from christianchristensen/killtcp.md
kill TCP connection
<?php
App::uses('FormHelper', 'View/Helper');
/**
* BootstrapFormHelper.
*
* Applies styling-rules for Bootstrap 3
*
* To use it, just save this file in /app/View/Helper/BootstrapFormHelper.php
* and add the following code to your AppController: