Skip to content

Instantly share code, notes, and snippets.

@mardix
mardix / php-cs-fixer-pre-commit.php
Created September 4, 2012 17:06
A pre-commit hook to make PHP code PSR-2 compliant, check for syntax error
#!/usr/bin/php
<?php
/**
* .git/hooks/pre-commit
*
* This pre-commit hooks will check for PHP error (lint), and make sure the code
* is PSR compliant.
*
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer)
*
@cedriclombardot
cedriclombardot / git_rewrite.rb
Created May 18, 2012 11:45
Remove git sensitive datas
#!/usr/bin/ruby
#
# Remove history of files wich contains passwords and commit the last version of the file
# http://help.github.com/remove-sensitive-data/
#
# How to use ?
# 1) Clone your repo
# 2) copy this file at the root of the repo
# 3) update glob_to_rewrite
# 4) run ruby git_rewrite.rb
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: