Skip to content

Instantly share code, notes, and snippets.

View lenybernard's full-sized avatar
🇨🇵

Leny BERNARD lenybernard

🇨🇵
View GitHub Profile
me@myserver:/my/project/path$ sudo jitsu deploy
info: Welcome to Nodejitsu vpauto
info: jitsu v0.13.4, node v0.8.27-pre
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
warn: **WARNING** Do not use multiple level subdomains, they will be going away soon!
info: Analyzing application dependencies in node app
warn: **WARNING** Do not use multiple level subdomains, they will be going away soon!
info: Creating snapshot 0.0.1-27
warn: Snapshot is larger than 50M!
@lenybernard
lenybernard / my test
Created December 12, 2013 10:18
Welcome document
Welcome to StackEdit! {#welcome}
=====================
Hello, I am yourbjk; first Markdown document within **StackEdit**[^stackedit]. Don't delete me, I can be helpful. I can be recovered anyway in the `Utils` tab of the <i class="icon-cog"></i> `Settings` dialog.
----------
*Documents*
<br />
<b>Notice</b>: unserialize(): Error at offset 27 of 27 bytes in <b>/Users/thomas/Workspace/guestapp/src/Guest/AppBundle/Controller/Api/CompanyController.php</b> on line <b>722</b><br />
<br />
<b>Notice</b>: unserialize(): Error at offset 23 of 26 bytes in <b>/Users/thomas/Workspace/guestapp/src/Guest/AppBundle/Controller/Api/CompanyController.php</b> on line <b>722</b><br />
<br />
<b>Notice</b>: unserialize(): Error at offset 27 of 29 bytes in <b>/Users/thomas/Workspace/guestapp/src/Guest/AppBundle/Controller/Api/CompanyController.php</b> on line <b>722</b><br />
<br />
<b>Notice</b>: unserialize(): Error at offset 7 of 10 bytes in <b>/Users/thomas/Workspace/guestapp/src/Guest/AppBundle/Controller/Api/CompanyController.php</b> on
<?php
public function process(ContainerBuilder $container)
{
if (!$container->hasDefinition('jms_translation.config_factory')) {
error_log('jms_translation.config_factory not exists');
return;
}
$definition = $container->getDefinition('jms_translation.config_factory');
@lenybernard
lenybernard / testfile
Created December 20, 2013 10:40
description
<?php
namespace Dav\AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\Request;
use JMS\SecurityExtraBundle\Annotation\PreAuthorize;
use JMS\SecurityExtraBundle\Annotation\Secure;
use Dav\AppBundle\Entity\Preference;
@lenybernard
lenybernard / gist:8492629
Last active January 3, 2016 16:59
template mapping nesting level issue
Whoops, looks like something went wrong.
1/1 FatalErrorException: Error: Maximum function nesting level of '300' reached, aborting! in /Users/lenybernard/Workspace/patrimea/v2/app/bootstrap.php.cache line 34
in /Users/lenybernard/Workspace/patrimea/v2/app/bootstrap.php.cache line 34
at ErrorHandler->handleFatal() in /Users/lenybernard/Workspace/patrimea/v2/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php line 0
at ParameterBag->get() in /Users/lenybernard/Workspace/patrimea/v2/vendor/knplabs/knp-menu/src/Knp/Menu/Silex/Voter/RouteVoter.php line 66
at RouteVoter->isMatchingRoute() in /Users/lenybernard/Workspace/patrimea/v2/vendor/knplabs/knp-menu/src/Knp/Menu/Silex/Voter/RouteVoter.php line 56
at RouteVoter->matchItem() in /Users/lenybernard/Workspace/patrimea/v2/vendor/knplabs/knp-menu/src/Knp/Menu/Matcher/Matcher.php line 47
at Matcher->isCurrent() in /Users/lenybernard/Workspace/patrimea/v2/vendor/knplabs/knp-menu/src/Knp/Menu/Matcher/Matcher.php line 67
Not found. The ressource does not exist
500 Internal Server Error - ResponseException
Stack Trace
in /Users/lenybernard/Workspace/yosh/yosh-festivals.com/vendor/laurentbrieu/mangopay/src/MangoPay/tools/restTool.inc at line 272
Warning: Invalid argument supplied for foreach() in /var/atlassian/bamboo_home/xml-data/build-dir/QVITALY-QVIDEV-JOB1/app/code/core/Mage/Catalog/Block/Layer/State.php on line 101
#0 /var/atlassian/bamboo_home/xml-data/build-dir/QVITALY-QVIDEV-JOB1/app/code/core/Mage/Catalog/Block/Layer/State.php(101): mageCoreErrorHandler(2, 'Invalid argumen...', '/var/atlassian/...', 101, Array)
#1 /var/atlassian/bamboo_home/xml-data/build-dir/QVITALY-QVIDEV-JOB1/app/design/frontend/quovadis/default/template/catalog/layer/state.phtml(37): Mage_Catalog_Block_Layer_State->getRecommandedFilters()
#2 /var/atlassian/bamboo_home/xml-data/build-dir/QVITALY-QVIDEV-JOB1/app/code/core/Mage/Core/Block/Template.php(241): include('/var/atlassian/...')
#3 /var/atlassian/bamboo_home/xml-data/build-dir/QVITALY-QVIDEV-JOB1/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/quovad...')
function sf {
([ -f app/console ] && ./app/console "$@"|| [ -f bin/console ] && ./bin/console "$@" || ./Tests/Functionnal/bin/console "$@") && say "OK" && terminal-notifier -message "Task done : $@"
}
alias assets="[ -d "web" ] && sf assets:install web --symlink --relative || [ -d "Tests/Functionnal/web" ] && sf assets:install Tests/Functionnal/web --symlink --relative"
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure