Skip to content

Instantly share code, notes, and snippets.

Valentin Merlet ValentinMerlet

Block or report user

Report or block ValentinMerlet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View aliases docker
# Import dump in db container
cat ./cool-dump.sql | docker-compose exec -T db psql -U postgres
View alias_git_log
alias git_pretty_log='git log --pretty="%C(Yellow)%h %C(reset)%ad (%C(Green)%cr%C(reset))%x09 %C(Cyan)%an: %C(reset)%s" --date=short'
@ValentinMerlet
ValentinMerlet / php_extensions.sh
Last active Oct 27, 2018
Extensions php dépendances Sf4
View php_extensions.sh
sudo apt install php-ext-xml
sudo apt install php-xml
sudo apt install php-curl
sudo apt install php-mbstring
sudo apt install php-zip
sudo apt install php7.2-sqlite3
View advent_of_code_day_7_part1.php
<?php
$input = "czlmv (78)
fiwbd (57)
twxnswy (98)
dhrnu (62)
yptrqp (64)
vikplll (9)
lgxjcy (359) -> vsbfmt, kbdcl
tvisu (70)
View advent_of_code_day_4_part_1.php
<?php
$countRowsValid = 0;
$input = "oaoe rxeq vssdqtu xrk cjv yaoqp loo
mveua dogbam szydvri hyzk lbega abzqw xwjn wniug kwbre
npaoy uivpxwd oynpa rcdk uixpvdw
yserir iikzcm ieuroca iuwcfov rvb giti crdpdcv mxpps
spyuhgo lucasl ucllsa bymnjig yflbv nxitmlf
xlxyhwz xla mpye fvjegwg fezlfrt inetrh vhg xpvstx ydhvq
View advent_of_code_day_1_part_2.php
<?php
$input = "81827597793116617842489265377993134215656726894684959794894446986381824811432752482413692448689179473928166874161681861461322258513274238616868751793943291175384681799747355569382131691847347445978871491766579433675362883623115957873481348568724727328892621697699251631441583698561135468282189279398392275539557759285995996657432978769393424223315994784675727952393921784419434659949485845958279832679951257136529467397895592841695512721162423414349754672934868784431786424385923866532678441434961898583225922476185737138913363571181947696985458412358956616349179644216781589953978823711833921869913749753293249222694889236255493738149738946998134697199827164436294483988395396769866542731459243895818169763959463114299115632725741318662192336963246691883695127751942169526498694226178125641237771124582537941297887613426738479369475673224679973946472121544647797273788344561566475592344144178112893336958565592561525754849962887824212243497919796956997196137936775649988453743383921783572826379843187465431
You can’t perform that action at this time.