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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; |
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
server { | |
listen 80; | |
server_name example.com example.net example.org www.example.com www.example.net www.example.org; | |
# If the Host header begins with www. | |
# then strip off the www. and redirect | |
# to the URL without the www. prefix. | |
if ($host ~* ^www\.(.+)) { | |
return 301 $scheme://$1$request_uri; | |
} |
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 | |
class AuthenticationControllerTest | |
{ | |
public function testAccountCanNotAccessAdministration() | |
{ | |
$client = static::createClient(); | |
$crawler = $client->request('GET', '/authentication/sign-in'); | |
$container = $client->getKernel() |
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 | |
BOOKSRC=AWA-PHP.md | |
BOOKPDF=AWA-PHP.pdf | |
BOOKHTML=AWA-PHP.html | |
pandoc $BOOKSRC -o $BOOKHTML | |
prince --verbose --media=print $BOOKHTML -o $BOOKPDF |
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
db_settings.host=localhost | |
db_settings.database=major_auth | |
db_settings.username=major_auth | |
db_settings.password= | |
db_settings_test.host=localhost | |
db_settings_test.database=major_auth_test | |
db_settings_test.username=major_auth_test | |
db_settings_test.password= |
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
parameters: | |
database_driver: "pdo_pgsql" | |
database_host: "@@DB_SETTINGS_HOST@@" | |
database_port: ~ | |
database_name: "@@DB_SETTINGS_DATABASE@@" | |
database_user: "@@DB_SETTINGS_USERNAME@@" | |
database_password: "@@DB_SETTINGS_PASSWORD@@" | |
test_database_driver: "pdo_pgsql" | |
test_database_host: "@@DB_SETTINGS_TEST_HOST@@" |
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
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "precise64" | |
config.vm.provision :shell, :path => "app/config/vagrant-bootstrap.sh" | |
# Create a forwarded port mapping. | |
config.vm.network :forwarded_port, guest: 8000, host: 8000, auto_correct: true |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="MajorAuth" default="build"> | |
<resolvepath propertyName="root_path" file="./" /> | |
<resolvepath propertyName="config_path" file="./app/config/" /> | |
<php function="date" returnProperty="build_date"> | |
<param value="c" /> | |
</php> | |
<php function="time" returnProperty="build_timestamp" /> |
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 | |
define('CUSTOMER_EMAIL', '[email protected]'); | |
$context = new ZMQContext(); | |
// This socket is a request socket meaning | |
// it makes requests to a bound IP address | |
// and port. | |
$requester = new ZMQSocket($context, ZMQ::SOCKET_REQ); |
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 | |
define('ACTION_LOOKUP', 'lookup'); | |
define('ACTION_ADD', 'add'); | |
// Create a new ZeroMQ context. You only ever want one | |
// context for each process. The context is essentially the | |
// container for all of the sockets you will be creating | |
// through the course of the application. | |
$context = new ZMQContext(1); |