This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Lancez cette commande dans un tertminal | |
| cat <<EOT | sudo tee /usr/local/bin/which_sf && sudo chmod +x /usr/local/bin/which_sf | |
| #!/bin/sh | |
| ./symfony | perl -ne 'if( /^([a-zA-Z0-9\-]+)/ ) { \$first = \$1; } elsif ( /^\s*(:[a-zA-Z0-9\-]+)/ ) { print \$first . \$1 . "\n"; }' | grep \$1 | |
| EOT | |
| ## | |
| ##Usage : | |
| which_sf foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Lancez cette commande dans un tertminal | |
| echo -e '#!/bin/sh\nphp -dxdebug.remote_autostart=On $*' | sudo tee /usr/local/bin/xdebug && sudo chmod +x /usr/local/bin/xdebug | |
| ##Usage : | |
| #Debugger un script PHP | |
| xdebug mon_script.php | |
| #Debugger une task Symfony | |
| xdebug ./symfony ns:command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
| summary = log --summary --name-only --abbrev-commit --color --color-words --date=relative | |
| #If you are using Tig as your core.pager | |
| [alias] | |
| graph = log --graph --pretty=format:'%h -%d %s (%cr) <%an>' --abbrev-commit --no-color --date=relative | |
| summary = log --summary --name-only --abbrev-commit --no-color --date=relative |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){ | |
| var sel = prompt('Selector...'), | |
| elt = $(sel), | |
| gcs = ('getComputedStyle' in window ? getComputedStyle : document.defaultView.getComputedStyle), | |
| cs = gcs(elt.get(0), null), | |
| css = [], | |
| scss = '' | |
| space = ' '; | |
| if(window.console) console.group(sel); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Standalone\Form; | |
| use \Symfony\Component\HttpFoundation as SHttp; | |
| use \Symfony\Component\Form as SForm; | |
| use \Symfony\Component\DependencyInjection as SDI; | |
| use \Symfony\Bridge as SBridge; | |
| //Register all your autoload function here | |
| //... |
NewerOlder