Skip to content

Instantly share code, notes, and snippets.

@woecifaun
woecifaun / doctrine_schema_update
Last active August 29, 2015 14:06
Little helper for Symfony doctrine:schema:update
#! /bin/sh
output="$(php app/console doctrine:schema:update --dump-sql)";
echo $output;
case $output in
Nothing* ) return 0;;
esac
@woecifaun
woecifaun / contacted-pug.md
Last active September 13, 2015 20:01
List of contacted PHP user groups for the HaPHPy Birthday project #haPHPy20
Column Description
Country If not relevant, fill with ~
Location Can be city, state, region… or ~ if not relevant
Name name of the php group

Legend

  • 📮 Email to group
  • 📫 Email to coordinator

sudo discoveryutil mdnsflushcache & sudo discoveryutil udnsflushcaches

@woecifaun
woecifaun / haphpy-php-user-groups.md
Last active August 30, 2015 22:41
List of PHP User Groups Contacted for the haphpy-birthday.net project

haphpy-birthday

Here is the list of PHP Users Groups I have contacted for the HaPHPy Birthday project: the collaborative movie celebrating 20 years of PHP.

PUGs that already participate to the project have a piece of cake (:cake:). They already appear on the HaPHPy PUG's list.

If your PHP group is not on the list or doesn't have a piece of cake, tell your group organiser about the project. You can also contact me: woecifaun@gmail●com or Twitter: Woecifaun

@woecifaun
woecifaun / nginx-lang-conf
Created February 17, 2019 10:35
Nginx lang redirection depending on preferred user (accept) language
server {
listen 80;
charset UTF-8;
# Language
set $user_langs ",$http_accept_language";
set $first_available_language "en";
if ($user_langs ~* ',{1}(en|fr)') {