Skip to content

Instantly share code, notes, and snippets.

View pilot's full-sized avatar
💭
Wobbly.me, time tracker & resource planning for teams, open source

Alex Demchenko pilot

💭
Wobbly.me, time tracker & resource planning for teams, open source
View GitHub Profile
<font size='1'><table class='xdebug-error xe-uncaught-exception' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "ostrov.populator.top_banner" has a dependency on a non-existent service "fos_elastica.object_persister.dressa.top_banner". in /var/www/ostrov/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php on line <i>58</i></th></tr>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "ostrov.populator.top_banner" has a dependency on a non-existent service "fos_elastica.object_persister.dressa.top_banner". in /var/www
<?php
class SomeName extends AnotherClass
{
public function index()
{
$input = Input::all();
$matches = Match::getList($input);
<?php
namespace AppBundle\Service;
use Symfony\Component\HttpFoundation\RequestStack;
/**
* Class ImagePathGenerator
*/
class ImagePathGenerator
{
const LOGO_PREFIX = '/store/uploads/logo/';
private $host;
<?php
/**
* @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
* @param \Doctrine\Common\Persistence\ObjectManager $objectManager
* @param PropertyDocument $propertyDocument
* @param boolean $persist
*
* @return array
*/
@pilot
pilot / es_ubuntu_14.04
Created October 26, 2016 15:20 — forked from gnrfan/es_ubuntu_14.04
Install ElasticSearch 1.6.0 on Ubuntu 14.04
# Install PPA tool
echo "Installing software for working with PPA packages..."
sudo apt-get install -y python-software-properties software-properties-common
# Install Oracle Java 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
echo "Installing ORACLE Java8..."
sudo apt-get install -y oracle-java8-installer

Keybase proof

I hereby claim:

  • I am pilot on github.
  • I am pilot (https://keybase.io/pilot) on keybase.
  • I have a public key whose fingerprint is 9C16 4088 03B5 648D BEFC 2937 4B82 04B5 F91D 9FA7

To claim this, I am signing this object:

<?php
/**
* @Given /^I select the "(?P<field>([^""]|\\")*)" radio button$/
*/
public function iSelectTheRadioButton($field)
{
$field = str_replace('\\"', '"', $field);
$radio = $this->getSession()->getPage()->findField($field);
@pilot
pilot / README.md
Created January 13, 2014 15:28 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@pilot
pilot / gist:6507167
Created September 10, 2013 09:39 — forked from jedi4ever/gist:944216
VERSION=2.2.5
apt-get -y install wget
rm -rf redis-$VERSION
wget http://redis.googlecode.com/files/redis-2.2.5.tar.gz -O redis-$VERSION.tar.gz
tar -xzvf redis-$VERSION.tar.gz
cd redis-$VERSION
./configure --prefix=/usr
make
rm -rf /tmp/redis-$VERSION.$$
mkdir /tmp/redis-$VERSION.$$
<?php
namespace Acme\DemoBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Role\SwitchUserRole;