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 | |
##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 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 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 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 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 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 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 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 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 |
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 | |
define('TEST_KEY', 'are_we_glued'); | |
$redis = new Redis(); | |
try { | |
$redis->connect('localhost', 6379); | |
$redis->set(TEST_KEY, 'yes'); | |
$glueStatus = $redis->get(TEST_KEY); | |
if ($glueStatus) { | |
$testKey = TEST_KEY; | |
echo "Glued with the Redis key value store:" . PHP_EOL; |