post-checkout.sh
uložit jako.git/hooks/post-checkout
.invalidate-opcache.php
jakowww/.invalidate-opcache.php
(POZOR! - tenhle soubor buďto na produkci nenahrávat, nebo zablokovat přístup!)
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 | |
class Foo1 | |
{ | |
public function bar() | |
{ | |
for ($i = 1000000; $i > 0; $i--) { | |
$result = $this->dance(); |
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 | |
namespace NewRelic; | |
use Kdyby; | |
use Nette; | |
use Tracy\Debugger; | |
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 | |
DOMAIN=www.rohlik.cz | |
REMOTE="upstream" | |
BRANCH="production" | |
REVISION=$(git --git-dir=$SOURCE/.git rev-parse HEAD | cut -c1-7) | |
GIT_MERGE_AUTHOR=$(git --git-dir=$SOURCE/.git --no-pager show -s --format='%an' $(git --git-dir=$SOURCE/.git rev-parse HEAD)) | |
function json_escape() { |
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 | |
class ExtensionTest extends Tester\TestCase | |
{ | |
public function testMergingMetadata_simple() | |
{ | |
$compiler = new CompilerMock(); |
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 | |
require __DIR__ . '/../vendor/autoload.php'; | |
$configurator = new Nette\Configurator; | |
$configurator->setDebugMode(TRUE); // debug mode MUST NOT be enabled on production server | |
$configurator->enableDebugger(__DIR__ . '/../log'); | |
$configurator->setTempDirectory(__DIR__ . '/../temp'); |
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 | |
/** | |
* @method onAttached(BaseControl $control, Nette\Application\UI\PresenterComponent $parent) | |
* @method \BasePresenter getPresenter() | |
* | |
* @property \BasePresenter|BaseControl[] $presenter | |
* @property-read \BasePresenter|BaseControl[] $presenter | |
* @property \Nette\Templating\FileTemplate|\stdClass $template |
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
(function ($) { | |
$.nette.ext('overlay', { | |
before: function (xhr, settings) { | |
if (!settings.nette || !settings.nette.el) { | |
return; | |
} | |
var tar = $(settings.nette.el); | |
var container = tar.closest('.ajax-overlay'); |
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
upstream huboard_unicorn { | |
server unix:/home/hosiplan/develop/testing/huboard/tmp/unicorn.huboard.sock fail_timeout=0; | |
} | |
server { | |
listen 127.0.0.1:80; | |
server_name huboard.dev; | |
root /home/hosiplan/develop/testing/huboard/public; | |
try_files $uri/index.html $uri @huboard_unicorn; |
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
{control formProductAdd} |