Skip to content

Instantly share code, notes, and snippets.

@iamdey
iamdey / example.php
Created December 11, 2013 07:52
symfony1 load helpers
<?php
sfContext::getInstance()->getConfiguration()->loadHelpers();
@iamdey
iamdey / app.js
Created January 21, 2014 11:13
angularJS directives communication
var app = angular.module("app", []);
app.directive("a", function() {
return {
restrict: "A",
controller: function() {
this.Foo = function(msg) {
console.log("foo" + msg);
};
}
@iamdey
iamdey / gist:9021138
Created February 15, 2014 15:50
list open ports & processes
netstat -pln
du -h --max-depth=1 /
@iamdey
iamdey / README.md
Last active August 29, 2015 14:13
colorize log

COLORIZE LOG

Installation

  1. copy where you want eg. ~/bin/colorize.sh

    (cd ~/bin/ && wget https://gist.githubusercontent.com/esion/1c68692d4a03f9effd64/raw/dba30293223144e386cc3cf7ccbebac3aa7d8c32/colorize.sh)
    
@iamdey
iamdey / README.md
Last active August 29, 2015 14:20
configuration de vim pour le développement

config vim pour le développement par Patrice FERLET

Ce script reprend les différentes commandes présentés dans la vidéo suivante :

https://www.youtube.com/watch?v=srGrhjOEx7M

Pré-requis

Le plugin Tagbar dépend de ctags :

@iamdey
iamdey / keybase.md
Last active February 10, 2016 07:48

Keybase proof

I hereby claim:

  • I am iamdey on github.
  • I am iamdey (https://keybase.io/iamdey) on keybase.
  • I have a public key ASDMCuwK1nvbO0iGMKmar5HiAgqZPBtmMykYylRaPEOJ0Qo

To claim this, I am signing this object:

#from pmartin
# tmux > 2.0
# Bindings de keys
set -g prefix C-a
set-window-option -g mode-keys vi
bind-key C-a last-window
const SignListByIdReducer = (state = { }, action) => {
switch (action.type) {
case actions.SUBMIT_EMAIL:
return Object.assign({}, state, {
[action.id]: {
id: action.id,
email: action.email,
list: action.list,
loading: true,
errors: [],
@iamdey
iamdey / .bashrc
Created April 29, 2016 13:28
alias docker clean
alias docker-clean='docker rm `docker ps -aq`; docker rmi `docker images -q -f "dangling=true"`'