namespace :php5 do
desc 'Reload PHP5-FPM'
task :reload do
on release_roles :app do
execute :sudo, "/usr/sbin/service php5-fpm", "reload"
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
# conf.d/05-opcache.ini | |
opcache.memory_consumption=1024 | |
opcache.interned_strings_buffer=64 | |
opcache.max_accelerated_files=20000 | |
opcache.revalidate_freq=0 | |
opcache.validate_timestamps=0 | |
opcache.fast_shutdown=1 | |
opcache.enable_cli=1 |
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
nelmio_cors: | |
defaults: | |
allow_credentials: false | |
allow_origin: [] | |
allow_headers: [] | |
allow_methods: [] | |
expose_headers: [] | |
max_age: 0 | |
hosts: [] |
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
{% set terms_link %}<a title="{% trans %}Read the General Terms and Conditions{% endtrans %}" href="{{ path('get_general_terms_and_conditions') }}">{% trans %}General Terms and Conditions{% endtrans %}</a>{% endset %} | |
{% set general_terms_and_conditions %}{{ 'I have read and accept the %general_terms_and_conditions%.'|trans({ '%general_terms_and_conditions%': terms_link })|raw }}{% endset %} | |
<div> | |
{{ form_errors(form.acceptGeneralTermsAndConditions) }} | |
{{ form_widget(form.acceptGeneralTermsAndConditions) }} | |
<label for="{{ form.acceptGeneralTermsAndConditions.vars.id }}">{{ general_terms_and_conditions|raw }}</label> | |
</div> |
-
Fork Fabiens repository: http://github.com/fabpot/symfony.git
-
Clone your fork and install/update vendors (I use my personal fork for now):
git clone git@github.com:pminnieur/symfony.git symfony
cd symfony && sh install_vendors.sh && sh update_vendors.sh
phpunit
-
Integrate Fabiens repository into your local clone:
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/perl | |
use strict; | |
use Data::Dumper; | |
use Getopt::Long; | |
# author: Gavin Towey, 2008 gtowey@gmail.com | |
# todo, add "follow thread" capability | |
# so we can give a process name or thread id & see | |
# all activity in sequence for each thread |
API REST ( http://bit.ly/2mQ6BNB )
Initialiser une API Rest, avec la ressource /api/tweets
.
Les méthodes suivantes seront implémentés :
cget()
: retourne la liste de tous les tweetsget($id)
: retourne un tweet par son IDpost()
: création d'un Tweet
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 | |
// READ: https://mtxserv.com/forums/threads/api-game-viewer.295/ | |
// Example usage of API Game Viewer (mtxserv.com) | |
$urlToken = 'https://mtxserv.com/oauth/v2/token?'; | |
$urlViewer = 'https://mtxserv.com/api/v1/viewers/game?'; | |
$query = array( | |
'grant_type' => 'https://mtxserv.com/grants/api_key', | |
'client_id' => '', // A Editer |
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 HytaleApi = require('hytale-api-sdk'); | |
var api = new HytaleApi.ArticlesApi(); | |
var callback = function(error, data, response) { | |
if (error) { | |
console.error(error); | |
} else { | |
console.log('API called successfully. Returned data: ' + data); | |
console.log(data); | |
} |
OlderNewer