Skip to content

Instantly share code, notes, and snippets.

View amenophis's full-sized avatar

Jérémy Leherpeur amenophis

View GitHub Profile
@bpolaszek
bpolaszek / bootstrap.php
Last active December 19, 2023 19:49
Symfony shortcuts for Pest
<?php
# tests/bootstrap.php
declare(strict_types=1);
namespace App\Test;
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client;
use App\Entity\User;
use App\Kernel;
@f2r
f2r / README.md
Last active December 17, 2021 09:23

Exercice PHP

Objectif:

Vous devez réaliser une commande en PHP qui prend en paramètre, un fichier CSV et génère un JSON.

Lors d'un live coding sur Twitch (https://www.twitch.tv/fredbouchery), je prendrai tout ou partie des codes réalisés pour les commenter et donner mon avis sur la réalisation qui me plait le plus. En fonction du nombre de réponses, je ferai peut-être plusieurs live.

Pour m'envoyer vos réalisations, contactez moi en DM sur twitter (https://twitter.com/fredbouchery/) avant le mercredi 22 avril 2020 à minuit.

anonymous
anonymous / vagrant.sh
Created July 28, 2014 17:02
#!/bin/bash
if [ ! -f /etc/apache2/apache2.conf ];
then
echo "updating packages"
apt-get update
echo "installing apache"
anonymous
anonymous / Vagrantfile
Created July 28, 2014 17:01
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.2.100"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.synced_folder "./", "/var/www", :mount_options => ["dmode=777,fmode=777"]