Skip to content

Instantly share code, notes, and snippets.

@atolye15
atolye15 / es.sh
Last active December 31, 2015 12:18 — forked from rajraj/es.sh
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk -y
wget https://github.com/elasticsearch/elasticsearch/archive/v0.90.7.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mkdir elasticsearch
mv elasticsearch-* elasticsearch
@atolye15
atolye15 / gist:7895433
Last active December 30, 2015 22:39
Translate Aware Path Twig Method

PathExtension.php

<?php
namespace ATL\CommonBundle\Twig;

use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

class PathExtension extends \Twig_Extension