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 [ `apachectl configtest` != "Syntax OK" ]; then | |
echo "Veuillez vérifier la configuration de votre serveur apache (apachectl configtest) avant de continuer." | |
exit 1 | |
fi | |
apt-get install -y php-zeroc-ice | |
INSTALLED=`dpkg -s php-zeroc-ice | grep "install ok installed" | wc -l` |
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
#!/usr/bin/env python | |
from os import listdir,path,remove | |
from collections import namedtuple | |
from time import strptime | |
import datetime | |
import string | |
import shutil | |
BackupRange = namedtuple('BackupRange', ['daily', 'weekly', 'monthly']) |
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 | |
# Originated from winusb package sources (available in colingille/freshlight ppa's repository) | |
# Program licensed under GNU GPLv3 | |
# Config | |
# Le script quitte en cas d'erreur d'une commande | |
set -o errexit | |
# Le script quitte en cas de variables non déclarée |
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 | |
namespace Context; | |
use Behat\Behat\Context\Context as ContextInterface; | |
use Behat\Behat\Hook\Scope\AfterScenarioScope; | |
use Behat\Behat\Hook\Scope\BeforeFeatureScope; | |
use Behat\Behat\Hook\Scope\BeforeScenarioScope; | |
use Behat\Gherkin\Node\TaggedNodeInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
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
COMPOSER_PATH=`which composer` | |
composer() { | |
if ! php5query -s cli -m xdebug >/dev/null; then | |
$COMPOSER_PATH $@ | |
return | |
fi | |
# Re-enable xdebug even after a ctrl-c (SIGINT) | |
# and clear the signal handler | |
trap 'sudo php5enmod xdebug; trap - INT' INT |
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
{# Variables: php_version, src_dir, packages, php_extensions, pecl_packages, php_ini_configs, php_fpm_configs -#} | |
FROM php:{{ php_version }}-fpm | |
# Install packages | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
{% for package in packages -%} | |
{{ package }} \ | |
{% endfor -%} | |
&& \ |
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
FROM jenkins:2.3 | |
COPY plugins.txt /usr/share/jenkins/ref/ | |
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/ref/plugins.txt | |
COPY basic-security.groovy /usr/share/jenkins/ref/init.groovy.d/basic-security.groovy |
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 | |
CONTAINER_NAME=${CONTAINER_NAME:=docker-cleanup} | |
ps="`docker ps -a --format "{{.Names}}: {{.Status}}" | grep ${CONTAINER_NAME}`" | |
run_container () { | |
docker run -d \ | |
--name docker-cleanup \ | |
-v /var/run/docker.sock:/var/run/docker.sock:rw \ | |
-v /var/lib/docker:/var/lib/docker:rw \ |
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
{ | |
/** Should go into roles/your_playbook/files/bastion.json */ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Resources": { | |
"BastionInstance": { | |
"Type": "AWS::EC2::Instance", | |
"Properties": { | |
"AvailabilityZone": "eu-central-1a", | |
"ImageId": "ami-ccc021a3", | |
"InstanceType": "t2.nano", |
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
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
OlderNewer