Skip to content

Instantly share code, notes, and snippets.

View spyl94's full-sized avatar

Spyl spyl94

View GitHub Profile
@spyl94
spyl94 / cloudSettings
Created August 29, 2018 11:50
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-29T11:49:02.125Z","extensionVersion":"v3.1.0"}

Keybase proof

I hereby claim:

  • I am spyl94 on github.
  • I am spyl (https://keybase.io/spyl) on keybase.
  • I have a public key ASD822TEUu0VSEntw7uQ-HeNkGii8cAAlKEMu6HUupnPIAo

To claim this, I am signing this object:

# Install recent v8, phpv8js
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y vim git git-svn subversion make g++ libreadline-dev && \
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /usr/local/depot_tools && \
export PATH=/usr/local/depot_tools:$PATH && \
cd /tmp && \
rm -rf /tmp/* && \
fetch --nohooks --no-history v8 && \
cd v8 && \
@spyl94
spyl94 / DOCKERFILE
Created March 24, 2016 10:30
Dockerfile command to install recent v8 and v8js php7 extension
FROM debian:jessie
# Install recent v8, phpv8js
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y vim git git-svn subversion make g++ libreadline-dev && \
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /usr/local/depot_tools && \
export PATH=/usr/local/depot_tools:$PATH && \
cd /tmp && \
fetch v8 && \
@spyl94
spyl94 / migrate.sh
Last active November 25, 2015 17:28
Migration plateforme v2
docker exec -it deploy_application_1 bash -c 'mysqldump --opt --single-transaction --host=database --user=deploy --password=$SYMFONY_DATABASE_PASSWORD capco_deploy' > dump.sql
instances=("mulhouse" "lechesnay" "nous-citoyens" "parlement-et-citoyens" "preprod" "demo" "keypeople" "lavaguecitoyenne" "democratie-ouverte" "ocpm" "jolicode" "mom21" "islean" "regionales2015" "republique-numerique" "rennes" "openlaw" "capco" "grenoble" "qcnum" "neo2017" "vincennes" "villas-robinson" "tarbes" "choisy" "vg-agglo" "drive");
for instance in "${instances[@]}"
do
eval "mkdir -p /home/capco/instances/${instance}"
eval "cp -R ~/CapCollectif-SF2/infrastructure/${instance}/files ~/instances/${instance}/files"
eval "chmod -R 777 ~/instances/${instance}/files/cache"
eval "cp -R ~/CapCollectif-SF2/infrastructure/${instance}/redis ~/instances/${instance}/redis"
done
./export_instances_db.sh
@spyl94
spyl94 / LinkedState.js
Created November 9, 2015 13:11
LinkedState decorator example (nécessite babel-polyfill)
import mixin from './mixin';
export default mixin({
linkState(field) {
return {
value: this.state[field],
requestChange: (value) => {
this.setState({[field]: value})
},
};
@spyl94
spyl94 / gist:31d762e46bef7ae2e09e
Created April 20, 2015 15:59
Brunch presentation
Brunch ?! C’est quoi, Brunch ?
Avec environ 4 000 stars GitHub (44% de Grunt), 270 forks et 4 ans d’existence active, il est tout sauf faiblard, juste… discret.
Brunch est un builder. Pas un exécuteur de tâches générique, mais un outil spécialisé dans la production de fichiers finaux pour la production, à partir de tout un tas de fichiers de développement.
Exécuteurs de tâches vs. outils de build
---
vagrantfile-local:
vm:
box: puphpet/debian75-x64
box_url: puphpet/debian75-x64
hostname: ''
memory: '1024'
cpus: '1'
chosen_provider: virtualbox
network:
@spyl94
spyl94 / excuses
Last active August 29, 2015 13:57
Alfo excuses
Je peux pas, chui a EPS
Je peux pas, je dois récupérer un rétroprojecteur
Je suis sur mon phone et même pas en région parisienne
Pas le temps
Ouais laisse tomber, on va se débrouiller, tfaçon je peux pas bosser avant 22h
J'ai pas assez dormi, j'ai une tendinite au poignet et une autre au coude droit (failli aller à l'hosto), j'ai passé la journée dans la KFet et dans Paris à nettoyer et ranger, je viens de rentrer et j'ai encore 2h de ménage et vaiselle qui m'attend.
Et de toute façon, je suis ne suis pas disponible demain à partir de 13h, je dois aller chercher mes parents qui arrivent sur paris et que je dois emmener ailleurs.
faut que je le fasse via la console ... :/
Chic- Le Freak : http://www.youtube.com/watch?v=cqupk71a-O0
Dani California
Annihilator - Sounds good to me (pas sur) : http://www.youtube.com/watch?v=ptHdz-z3ess
Pink Floyd - Another Brick In The Wall (Part 2) : http://www.youtube.com/watch?v=GmsJqzEEfco
Lambe an dro
Ça c'est vraiment toi
Down to Mexico
Apologie: http://www.youtube.com/watch?v=LFHYfzGOtlc