Skip to content

Instantly share code, notes, and snippets.

@Martin91
Martin91 / .git_scripts_check_branchs.sh
Created December 22, 2020 03:02
git scan released branches
#!/bin/zsh
specialBranches=("master" "uat" "test" "release")
echo "\u001b[31mScanning released local branches...\n--------------------------------------------------------\u001b[0m"
releasedLocalBranches=()
for branch in $(git branch)
do
git show-ref -s --heads $branch | xargs git branch --contains | grep master > /dev/null
if [[ $? -eq 0 && ! " ${specialBranches[@]} " =~ " ${branch} " ]]; then
<?php
// INTERFACES
interface WriterFactory
{
public function createCsvWriter(): CsvWriter;
public function createJsonWriter(): JsonWriter;
}
@jpchateau
jpchateau / DOCKER.md
Last active August 1, 2024 12:57
Docker : commandes et instructions Dockerfile utiles

Docker cheat sheet

Commandes Docker

$ docker ps # Visualiser les conteneurs actifs
$ docker ps -a # Visualiser tous les conteneurs
$ docker rm [container] # Supprimer un conteneur inactif
$ docker rm -f [container] # Forcer la suppression d'un conteneur actif
$ docker images # Lister les images existantes
@jpchateau
jpchateau / Interview back-end developer
Last active May 15, 2024 08:34
Entretien développeur back : PHP / Symfony / MySQL
Cible : Développeur PHP / Symfony / MySQL
Niveau : Senior
Ce document propose des questions classiques, sans piège, à poser lorsque vous désirez valider un candidat pour un poste de développeur back.
J'utilise personnellement cette trame de questions, libre à vous de vous en inspirer, d'ajouter vos propres questions, et de déterminer lesquelles sont éliminatoires à vos yeux.
Veille technologique
Quelle est la version actuelle de PHP ?
> http://php.net/supported-versions.php
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active September 20, 2024 01:36
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository