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] | |
| # Checkout | |
| co = checkout | |
| # Clean sync remote/local branches | |
| cl = "! git fetch -p && for branch in $(git branch -vv | grep ': disparue]' | awk '{print $1}'); do git branch -D $branch; done" | |
| # View abbreviated SHA, description, and history graph of the latest 20 commits | |
| l = log --pretty=oneline -n 20 --graph --abbrev-commit | |
| # | |
| lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(cyan)%d %Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --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
| {% for key, value in _context %} | |
| <li>{{ key }}</li> | |
| {% endfor %} |
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
| #!/bin/sh | |
| if [ -d app/cache ]; then rm -rf app/cache/*; fi | |
| if [ -d app/logs ]; then rm -rf app/logs/*; fi | |
| if [ -d app/spool ]; then rm -rf app/spool/*; fi | |
| # source : https://raw.github.com/everzet/dotfiles/master/scripts/chcache | |
| USER=$(whoami) | |
| APACHE_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {print $1}') |
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
| // true if needed is found in list | |
| function ( list, needed ) { return !!~list.indexOf( needed ); } |
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
| use FOS\UserBundle\Model\User as ModelUser; | |
| use Virgin\UserBundle\Validator\Constraints as VirginAssert; | |
| /** | |
| * Storage agnostic user object | |
| * | |
| * @author Thibault Duplessis <thibault.duplessis@gmail.com> | |
| * @author Johannes M. Schmitt <schmittjoh@gmail.com> | |
| */ | |
| class User extends ModelUser |
NewerOlder