Skip to content

Instantly share code, notes, and snippets.

View mykiwi's full-sized avatar
🥝
$ docker buildx bake future

Romain Gautier mykiwi

🥝
$ docker buildx bake future
View GitHub Profile
@mykiwi
mykiwi / _.md
Last active August 29, 2015 14:17 — forked from klange/_.md

Since this is on Hacker News...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later).
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • They're all while loops because shut up, you're overthinking a joke.
@mykiwi
mykiwi / Docker.sh
Last active August 29, 2015 14:13
Boot2docker Volume with Windows
# in /var/lib/boot2docker/bootlocal.sh
echo 'alias docker-compose="docker run --rm -ti -v \`pwd\`:/app -v /var/run/docker.sock:/var/run/docker.sock dduportal/docker-compose:latest"' >> /home/docker/.ashrc
echo 'alias fig=docker-compose' >> /home/docker/.ashrc
echo 'alias composer="docker run --rm -it -v \`pwd\`:/app composer/composer"' >> /home/docker/.ashrc
echo 'alias symfony="docker run --rm -i -t -u \`id -u\` -v \`pwd\`:/src romqin/symfony-installer"' >> /home/docker/.ashrc
@mykiwi
mykiwi / selenium.sh
Created June 4, 2014 12:27
Selenium2 window size
DISPLAY=:1 xvfb-run --server-args="-screen 0, 1280x720x24" java -jar /path/to/selenium-server-standalone-2.XX.jar
NameVirtualHost *:80
<VirtualHost *:80>
ServerName {{ hostname }}
DocumentRoot {{ application.root_path }}/web
DirectoryIndex app.php
RewriteEngine off
<Location />
RewriteEngine On
#!/bin/bash
# pwd should be Symfony2project/bin
# must have behat executable next to this script
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
for feature_path in `find src/ -path '*Features'`; do
bundle=$(echo $feature_path | sed -e 's~.*src/\(.*\)/Features~\1~' | sed -e 's~/~~');
@mykiwi
mykiwi / app.php
Last active December 17, 2015 06:58
Dispatcher between Symfony2 and a legacy application
<?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
// Hack SwiftMailer (symfony1 vs Symfony2)
define('SWIFT_REQUIRED_LOADED', true);
@mykiwi
mykiwi / client-slow.php
Last active December 16, 2015 21:19 — forked from igorw/client-slow.php
<?php
require __DIR__.'/vendor/autoload.php';
use React\Curry\Util as Curry;
$projects = array(
'react-php/react',
'cboden/Ratchet',
'nrk/predis-async',