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 | |
| namespace Media33; | |
| class IvoryFilter extends \Nette\Object implements \Arachne\Resources\IFilter | |
| { | |
| /** @var \Ivory\Compiler */ | |
| protected $compiler; |
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 | |
| use Nette; | |
| /** | |
| * @author Jáchym Toušek <enumag@gmail.com> | |
| */ | |
| class SessionPanelExtension extends Nette\Config\CompilerExtension | |
| { |
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
| services: | |
| foo: | |
| class: FooService('two') | |
| services: | |
| foo: | |
| class: FooService | |
| arguments: [ 'two' ] |
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 | |
| // requires -vv | |
| // TODO: show location using @tracySkipLocation | |
| // TODO: use colors if possible (Dumper::dump() + output buffering) | |
| function debug($var) | |
| { | |
| $dump = \Nette\Diagnostics\Dumper::toText($var); | |
| \Codeception\Util\Debug::debug("\n" . trim($dump)); | |
| } |
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
| (function(){ | |
| var agent = navigator.userAgent.toLowerCase(); | |
| if (/trident/.test(agent)) { | |
| var version = (/msie ([\w.]+)/.exec(agent) || agent.indexOf('compatible') < 0 && /mozilla(?:.*? rv:([\w.]+)|)/.exec(agent) || [])[1]; | |
| if (version) { | |
| document.documentElement.className += ' ie' + parseInt(version); | |
| } | |
| } | |
| })(); |
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
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # NEW WAY / EASY WAY | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb | |
| sudo dpkg -i elasticsearch-1.1.1.deb |
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 | |
| namespace VojtechDobes\NetteAjax; | |
| use Nette\Application\Application; | |
| use Nette\Object | |
| class HistoryListener extends Object | |
| { |
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 | |
| namespace App\Latte; | |
| use Latte\Compiler; | |
| use Latte\Macros\MacroSet; | |
| class ResourceMacro extends MacroSet | |
| { |
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
| find * -type f -exec sed -i 'N; s/<?php\n\/\*\*/<?php\n\/\*/' {} \; |
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
| ``` | |
| $ sudo service mysql stop | |
| $ sudo mysqld_safe --skip-grant-tables --skip-syslog --skip-networking | |
| ``` | |
| leave it be, run second terminal: | |
| ``` | |
| $ mysql -u root | |
| $ UPDATE mysql.user SET authentication_string=PASSWORD('password') WHERE User='root'; |