with a hat tip to Sublime Text 2 Shortcuts
| ⌘; | autocomplete |
| ⌘⌥B | instant replay |
| ⌘⌥E | search across all tabs |
| How to disable auto-save: | |
| Go to File > Settings (Ctrl+Alt+S). | |
| Go to Appearance & Behavior > System Settings. | |
| Make sure the two are unchecked: | |
| Save files on frame deactivation | |
| Save files automatically if application is idle for x sec. | |
| Go to Editor > General > Editor Tabs | |
| Put a checkmark on "Mark modified files with asterisk" | |
| (Optional but recommended) Under "Tab Closing Policy", select "Close non-modified files first". You may also want to increase the number of allowed tabs. | |
| Click Apply > OK. |
with a hat tip to Sublime Text 2 Shortcuts
| ⌘; | autocomplete |
| ⌘⌥B | instant replay |
| ⌘⌥E | search across all tabs |
| <?php | |
| namespace NoxLogic\DemoBundle\Form\Type; | |
| use Doctrine\ORM\EntityManager; | |
| use NoxLogic\DemoBundle\Entity\Province; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormBuilderInterface; | |
| use Symfony\Component\Form\FormEvent; | |
| use Symfony\Component\Form\FormEvents; |
| #/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # forked by Gianluca Guarini | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep -E --quiet "$1" && eval "$2" | |
| } |
| #!/bin/bash | |
| # chkconfig: 345 20 80 | |
| # description: Play start/shutdown script | |
| # processname: play | |
| # | |
| # Instalation: | |
| # copy file to /etc/init.d | |
| # chmod +x /etc/init.d/play | |
| # chkconfig --add /etc/init.d/play | |
| # chkconfig play on |
| <?php | |
| /** | |
| * Global Configuration Override | |
| * | |
| * You can use this file for overriding configuration values from modules, etc. | |
| * You would place values in here that are agnostic to the environment and not | |
| * sensitive to security. | |
| * | |
| * @NOTE: In practice, this file will typically be INCLUDED in your source |
| #!/bin/bash | |
| # Put this file at: .git/hooks/post-checkout | |
| # and make it executable | |
| # You can install it system wide too, see http://stackoverflow.com/a/2293578/685587 | |
| PREV_COMMIT=$1 | |
| POST_COMMIT=$2 | |
| NOCOLOR='\e[0m' |
| #!/bin/sh | |
| export PATH=/opt/play2:$PATH | |
| cd ~/server | |
| rundir=myproject | |
| repo=git@server:myproject.git | |
| temp=$rundir.buid.temp | |
| rm -rf $temp |