https://speakerdeck.com/benjam1/adoptez-le-tdd-sur-vos-projets-symfony2-existants
http://davidbu.ch/slides/20130404-sflive_phpcr.html
https://dl.dropboxusercontent.com/u/581816/sflive_Paris_2013_DIC_-_Thomas_Rabaix.pdf
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.7 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
| define [ | |
| 'jquery' | |
| 'underscore' | |
| 'backbone' | |
| 'lib/gui' | |
| 'models/notification' | |
| 'views/notification' | |
| 'vendor/tween' | |
| 'jquery-ui' |
| #!/bin/sh | |
| # You might want to put this script in crontab, backup day by day. | |
| # | |
| # $ sudo -u git -H crontab -l | |
| # $ 0 0 1 * * /path/to/your/BackupGitlab.sh | |
| cd /home/git/gitlab | |
| /usr/local/bin/bundle exec rake gitlab:backup:create RAILS_ENV=production |
| require 'mina/bundler' | |
| require 'mina/rails' | |
| require 'mina/git' | |
| require 'mina/rvm' | |
| # Usually mina focuses on deploying to one host and the deploy options are therefore simple. | |
| # In our case, there is a number of possible servers to deploy to, it is therefore necessary to | |
| # specify the host that we are targeting. | |
| server = ENV['server'] | |
| # Since the same host can have multiple applications running in parallel, it is necessary to |
| #!/bin/sh | |
| # create mount point | |
| if [ ! -d /ram ] | |
| then | |
| mkdir /ram | |
| fi | |
| # create ramfs | |
| mount -t ramfs -o size=512M ramfs /ram/ |
| // --- Compiling --- | |
| $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
| $ tar xzvf redis-2.8.3.tar.gz | |
| $ cd redis-2.8.3 | |
| $ make | |
| $ make install | |
| // --- or using yum --- | |
| $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "encoding/base64" | |
| "fmt" | |
| "io" | |
| ) |
| [unix_http_server] | |
| file=/var/run/supervisor.sock | |
| chmod=0770 | |
| chown=root:supervisor | |
| [supervisord] | |
| pidfile=/var/run/supervisord.pid | |
| nodaemon=false | |
| logfile=/var/log/supervisord/supervisord.log | |
| loglevel=error |