A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| {% macro recursiveCategory(category) %} | |
| <li> | |
| <h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4> | |
| {% if category.children|length %} | |
| <ul> | |
| {% for child in category.children %} | |
| {{ _self.recursiveCategory(child) }} | |
| {% endfor %} | |
| </ul> |
| <?php | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
| use Symfony\Bundle\FrameworkBundle\Console\Application; | |
| use Symfony\Component\Console\Input\ArrayInput; | |
| /** | |
| * @Route("/test") | |
| */ |
| <?php | |
| /** | |
| * The actual command which is used to call other commands | |
| */ | |
| class CommandRunCommand extends ContainerAwareCommand | |
| { | |
| protected function configure() | |
| { | |
| $this->setName("cmd:run") |
| #!/bin/sh | |
| USER=$(whoami) | |
| APACHE_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {print $1}') | |
| sudo chmod +a "$USER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs | |
| sudo chmod +a "$APACHE_USER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs | |
| echo "app/cache & app/logs been properly chmod'ed for $USER and $APACHE_USER" |
| #!/bin/sh | |
| sismo --quiet build `git name-rev --name-only HEAD | xargs -I {} echo "Pink Tie/CoreBundle/{}" | tr '[A-Z]' '[a-z]' | tr "/" "-" | tr " " "-"` `git log -1 HEAD --pretty="%H"` & |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| <?php | |
| namespace Acme\DemoBundle\Controller; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| class WelcomeController extends Controller | |
| { | |
| public function indexAction() | |
| { |
| <?php | |
| namespace Widop\Mink\Extension; | |
| /** | |
| * Dictionary to manage popups. | |
| * | |
| * @author Benjamin Lazarecki <[email protected]> | |
| */ | |
| trait PopupDictionary |