Skip to content

Instantly share code, notes, and snippets.

View ubermuda's full-sized avatar

Geoffrey Bachelet ubermuda

View GitHub Profile
@ubermuda
ubermuda / sphinx-macosx.sh
Created June 6, 2012 02:05
Installing sphinxsearch on macosx
# first sphinx
brew install sphinx
# the formula does not install libsphinxclient :/
wget http://sphinxsearch.com/files/sphinx-2.0.4-release.tar.gz
tar xzf sphinx-2.0.4-release.tar.gz
cd sphinx-2.0.4-release/api/libsphinxclient/
CXXCPP="gcc -E" ./configure --prefix=/usr/local
make
make install
@ubermuda
ubermuda / nginx.conf
Created November 5, 2013 22:13
Proxy a unix socket HTTP server to a tcp port using nginx.
server {
listen 127.0.0.1:9000;
location / {
proxy_pass http://unix:/var/run/docker.sock:/;
}
}
<?php
class CarSport extends Car
{
public function getMaxSpeed()
{
return 230;
}
}
<?php
use Clue\React\Mq\Queue;
use React\Promise\Promise;
class Job
{
public function run()
{
return new Promise(function() {
@ubermuda
ubermuda / 00README.md
Last active May 28, 2018 21:06 — forked from jlondiche/00README.md
Job Board - JL Recrutement

Voici toutes les opportunités du moment. Vous noterez que je ne cache pas le nom des entreprises comme indiqué dans mon post Medium https://medium.com/@jlondiche/jarr%C3%AAte-le-recrutement-propri%C3%A9taire-je-d%C3%A9marre-l-open-source-6e33463aec9. Vous y trouverez également mon code de conduite que je m'engage à respecter pour chaque process.

Pour postuler, envoyez-moi un email à jeanne.londiche@jlrecrutement.com avec 2 ou 3 lignes rapides vous concernant.

À bientôt.

==> Avec un seul envoi de CV, vous avez accès à toutes mes offres et donc un contact direct/privilégié avec les sociétés listées ci-dessous. Faites-moi confiance et gagnez un temps fou. <==

<?php
$event->setResponse(Argument::any())->will(function($args) use ($event) {
$event->getResponse()->willReturn($args[0]);
});
// ->setResponse() happens inside ->onKernelException()
$subscriber->onKernelException($event->reveal());
$event->getResponse(); // returns a MethodProphecy?!
<?php
namespace AppBundle\Command;
use Doctrine\ORM\EntityManager;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class DatabaseInstallLevenshteinCommand extends Command
@ubermuda
ubermuda / docker.php
Last active December 30, 2015 19:49
Sort of documentation for https://github.com/stage1/docker-php
<?php
/**
* Internally, the client instantiates a Guzzle\Http\Client on Docker's
* default tcp address (127.0.0.1:4243) but you could pass your own too
*/
$docker = new Docker\Docker();
/**
* This is how you wrap a Dockerfile with its context
bytes [1,0,0,0,0,0,0,239,191,189]
bytes length 10
set nocompatible
filetype on
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'scrooloose/nerdtree'
Bundle 'ctrlp.vim'