Skip to content

Instantly share code, notes, and snippets.

View JJK801's full-sized avatar

Jérémy JOURDIN JJK801

  • Foodyssey
  • Lyon, France
View GitHub Profile
class ShairportSync < Formula
desc "AirTunes emulator. Shairport Sync adds multi-room capability."
homepage "https://github.com/mikebrady/shairport-sync"
url "https://github.com/mikebrady/shairport-sync/archive/2.8.tar.gz"
sha256 "d4bedbd2f8d229fdc1f541fbac1f20cf1f471693c243784cad71ed1edafbb882"
head "https://github.com/mikebrady/shairport-sync.git"
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
@JJK801
JJK801 / listener_example_test.php
Created October 1, 2013 07:44
Listener test example for M6Web Article
<?php
namespace M6\Bundle\MyBundle\Tests\Units\Listener;
use M6\Bundle\MyBundle\Listener;
use Symfony\Component\HttpFoundation\Request;
class MyEventSubscriber
{
public function testOnRequest()
{
@JJK801
JJK801 / listener_example.php
Last active December 24, 2015 09:09
Code illustration for M6Web article
<?php
namespace M6\Bundle\MyBundle\Listener;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use M6\Bundle\MyBundle\Helper\MyHelper;
class MyEventSubscriber implements EventSubscriberInterface
{
@JJK801
JJK801 / pre-commit.sh
Last active July 20, 2016 13:39
Git Pre-Commit hook for coding standards validation
#!/bin/bash
binary="coke"
file=".coke"
files=""
stash=0
function success
{
echo "[$(tput bold)$(tput setaf 2)SUCCESS$(tput sgr0)] $(tput setaf 6)$1$(tput sgr0)"