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
| MESSAGE: | |
| nginx: 10.0.0.228 - - [06/Jun/2014:18:26:18 -0400] "POST /es/logstash-2014.06.06/_search HTTP/1.1" 200 26486 "http://example.org/index.html"; "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36" REQID:"-" | |
| GROK PATTERN: | |
| nginx: %{COMMONAPACHELOG} %{QS:referrer}; %{QS:agent} REQID:%{QS:reqid} |
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 AC\Authentication; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\RequestMatcherInterface; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
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 | |
| R\chain::($myArray, [ | |
| [R\map, function ($i) { return $i*2; }], | |
| [R\filter, function ($i) { return $i > 10; }] | |
| ]) |
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 (Ayamel, global) { | |
| "use strict"; | |
| var template = '<div class="videoBox"><div id="youtubePlayer"></div></div>', | |
| captionHolderTemplate = '<div class="videoCaptionHolder"></div>', | |
| urlRegexen = [ | |
| new RegExp("/youtube:\/\/([A-Za-z0-9]+)/i"), | |
| new RegExp("/https?:\/\/www\.youtube\.com\/watch\?v=([A-Za-z0-9]+)/i"), | |
| new RegExp("/https?:\/\/www\.youtube\.com\/v/([A-Za-z0-9]+)/i"), | |
| new RegExp("/https?:\/\/youtu\.be\/([A-Za-z0-9]+)/i") |
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
| Behold |
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
| describe "fml-ui", -> | |
| it 'should be sane', -> | |
| #foo | |
| expect(true).toEqual(true) | |
| expect(true).toEqual(true) | |
| expect(true).toEqual(true) | |
| expect(true).toEqual(false) | |
| expect(true).toEqual(true) | |
| return foo |
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 | |
| trait Methods | |
| { | |
| public function __call($name, $args) | |
| { | |
| if (property_exists($this, $name)) { | |
| return $this->$name; | |
| } |
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 | |
| trait Methods | |
| { | |
| public function __call($name, $args) | |
| { | |
| if (get_parent_class($this)) { | |
| $x = parent::__call($name, $args); | |
| if (!is_null($x)) { return $x; } | |
| } |
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 | |
| if ($parent = $cls->getParentClass()) { | |
| if ($parent->hasMethod("acModelTraitsGetMethodMap")) { | |
| $pmap = parent::acModelTraitsGetMethodMap(); | |
| $metaMap[$clsname] = array_merge($metaMap[$clsname], $pmap); | |
| } | |
| } |
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
| control@zeus:~$ ip addr | |
| 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN | |
| link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
| inet 127.0.0.1/8 scope host lo | |
| inet 169.254.169.254/32 scope link lo | |
| inet6 ::1/128 scope host | |
| valid_lft forever preferred_lft forever | |
| 2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br100 state UP qlen 1000 | |
| link/ether 00:26:55:dc:ff:c2 brd ff:ff:ff:ff:ff:ff | |
| inet6 fe80::226:55ff:fedc:ffc2/64 scope link |