This file contains hidden or 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 | |
return Symfony\CS\Config\Config::create() | |
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | |
->fixers([ | |
'concat_with_spaces', | |
'multiline_spaces_before_semicolon', | |
'short_array_syntax', | |
'newline_after_open_tag', | |
'single_quote', |
This file contains hidden or 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 | |
##Authentication | |
$this->container->setParameter( "anonymous_key", uniqid() ); | |
$this->container->register( "password.encoder.XXX", "Encoder"); | |
$this->container->register( "provider.inmemory", "Symfony\Component\Security\Core\User\InMemoryUserProvider" ); | |
$this->container->register( "user.checker", "Symfony\Component\Security\Core\User\UserChecker" ); | |
$this->container->register( "encoder.factory", "Symfony\Component\Security\Core\Encoder\EncoderFactory") | |
->addArgument( ["Symfony\Component\Security\Core\User\User"=>new Reference("password.encoder.XXX")] ); |
This file contains hidden or 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 php | |
<?php | |
include_once 'app/global_vars.php'; | |
require ROOT_DIR . 'vendor/autoload.php'; | |
use Application\Command\InsertFixturesCommand; | |
use Symfony\Component\Console\Application; |
This file contains hidden or 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/sh | |
# | |
# Run the hook command. | |
# Note: this will be replaced by the real command during copy. | |
# | |
CONTAINER="php" | |
ROOT_DIR="/var/www/app" | |
GIT_USER=$(git config user.name) | |
GIT_EMAIL=$(git config user.email) |
This file contains hidden or 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 | |
set -e | |
addgroup sysadmin | |
adduser newuser | |
usermod -a -G sysadmin newuser | |
chmod u+w /etc/sudoers | |
echo "\n# Added by <YOUR-NAME>\n%sysadmin ALL=(ALL) ALL" >> /etc/sudoers | |
chmod u-w /etc/sudoers |
This file contains hidden or 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 gulp = require('gulp'); | |
var sass = require('gulp-ruby-sass'); | |
var minifyCSS = require('gulp-minify-css'); | |
var concat = require('gulp-concat'); | |
var plumber = require('gulp-plumber'); | |
var uglify = require('gulp-uglify'); | |
var onError = function(err) { | |
console.log(err); | |
}; |
This file contains hidden or 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
.git | |
.gitignore |
This file contains hidden or 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
curl -i http://git.io -F "url=https://github.com/<whatever you like to point to>" -F "code=<preferredcode>" | |
# Example: | |
# curl -i http://git.io -F "url=https://github.com/uDig/udig-platform" -F "code=udigPlatform" | |
# return the following shortened URL : http://git.io/udigPlatform |
This file contains hidden or 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
app: | |
image: yappabe/data | |
volumes: | |
- .:/var/www/app | |
- /vendor | |
tty: true | |
nginx: | |
image: yappabe/nginx | |
ports: |
This file contains hidden or 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
while true; do echo "pages.load.home:$RANDOM|ms" | nc -w 1 -u 127.0.0.1 8125; done | |
while true; do echo "pages.request.home:1|c" | nc -w 1 -u 127.0.0.1 8125; done |