This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.provider "virtualbox" do |v| | |
v.gui = true | |
v.memory = 2048 | |
end | |
# In case you need an IP to access the VM from another software : | |
# config.vm.network "private_network", ip: "192.168.56.101" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 4 ]; then | |
echo "Illegal number of parameters" | |
echo "" | |
echo "Usage: ./fix-azure-disk-double-mount.sh <azure subscription id> <azure resource_group> <kube context> <kube namespace>" | |
echo "" | |
echo "Find all pods in error, checks if it is related to an Azure disk issue. Then detach from azure VM these disks. It should trigger a resync automatically on kube side. Run the scripts multiple times if the first time is not the one." | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import socket | |
import threading | |
import SocketServer | |
from socket import error as SocketError | |
import errno | |
class SingleTCPHandler(SocketServer.BaseRequestHandler): | |
def handle(self): | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +jbouzekri is my blockchain ID. https://onename.com/jbouzekri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var allLabel = document.querySelectorAll('div[role=menu] ul li a span'); | |
for (keycomp in allLabel) { | |
if (typeof allLabel[keycomp] == 'object') { | |
var label = allLabel[keycomp].textContent; | |
if (label.startsWith('Tous les appareils')) { | |
var allNumber = label.substring(label.lastIndexOf("(")+1,label.lastIndexOf(")")); | |
} else if (label.startsWith('Compatible')) { | |
var compNumber = label.substring(label.lastIndexOf("(")+1,label.lastIndexOf(")")); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Gildas Quéméner <[email protected]> | |
* @copyright 2013 Akeneo SAS (http://www.akeneo.com) | |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
*/ | |
use Behat\Behat\Exception\BehaviorException; | |
use Behat\Mink\Driver\Selenium2Driver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
A nodejs websocket proxy which forward a request from a websocket to a tcp server. | |
*/ | |
var io = require('socket.io').listen(8080); | |
var net = require('net'); | |
io.sockets.on('connection', function (socket) { | |
var client = new net.Socket(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
: ' | |
Place this script in a folder of your PATH and add execute rights to it | |
You can then use git create-repo REPO_NAME (without .git at the end) to init a bare repo in your current folder | |
' | |
set -e | |
if [ $# -ne 1 ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.highlight .hll { background-color: #49483e } | |
.highlight { background: #272822; color: #f8f8f2 } | |
.highlight pre { background: transparent; color: #f8f8f2 } | |
.highlight .c { color: #75715e } /* Comment */ | |
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */ | |
.highlight .k { color: #66d9ef } /* Keyword */ | |
.highlight .l { color: #ae81ff } /* Literal */ | |
.highlight .n { color: #f8f8f2 } /* Name */ | |
.highlight .o { color: #f92672 } /* Operator */ | |
.highlight .p { color: #f8f8f2 } /* Punctuation */ |
NewerOlder