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(){"use strict";var e="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/ICA_flag.svg/220px-ICA_flag.svg.png",t="http://freegeoip.net/json/?callback=window.____PeskyRuskies____.jsonpCallback",n="RU",r=false,i=null;window.____PeskyRuskies____={init:function(){var e=this,t=function(){e.initJsonpRequest()},n=function(){if(!r){try{document.documentElement.doScroll("left")}catch(t){setTimeout(n,1);return}e.initJsonpRequest()}};if(document.readyState==="complete"){this.initJsonpRequest()}else if(document.addEventListener){document.addEventListener("DOMContentLoaded",t,false);document.addEventListener("load",t,false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",t);document.attachEvent("onload",t);try{if(document.documentElement.doScroll&&window.frameElement===null){n()}}catch(i){}}},initJsonpRequest:function(){if(!r){i=document.createElement("script");i.type="text/javascript";i.src=t;document.body.appendChild(i);r=true}},jsonpCallback:function(t){if(i){if(t.country_code!==u |
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 | |
| $pidFile = __DIR__ . '/push-notify.pid'; | |
| $localSockAddr = __DIR__ . '/push-notify.sock'; // used for sending updates | |
| $publicSockAddr = 'tcp://0.0.0.0:1337'; // bind address for push clients | |
| $remoteSockAddr = 'tcp://127.0.0.1:1337'; // push client remote address for testing |
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 | |
| // Because PHP_URL_* constants are sequential :-( | |
| const URL_SCHEME = 0x01; | |
| const URL_USER = 0x02; | |
| const URL_PASS = 0x04; | |
| const URL_HOST = 0x08; | |
| const URL_PORT = 0x10; | |
| const URL_PATH = 0x20; | |
| const URL_QUERY = 0x40; |
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 | |
| class QueryLevel implements \ArrayAccess, \Iterator, \Countable | |
| { | |
| private $elements = []; | |
| private $iterationValid; | |
| private function encodeElement($name, $value, $nameFormat = '%s') | |
| { |
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 Seedstream; | |
| use React\EventLoop\LoopInterface, | |
| React\Socket\ConnectionInterface; | |
| class Pusher | |
| { | |
| private $loop; |
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 Seedstream; | |
| use React\EventLoop\LoopInterface, | |
| React\Socket\ConnectionInterface; | |
| class HandlerManager | |
| { | |
| private $loop; |
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 | |
| // hack for viper7 | |
| $_SERVER['REQUEST_URI'] = '/' . basename($_SERVER['PHP_SELF']) . '/55dev'; | |
| session_start(); | |
| $methods = [ | |
| 'GET', | |
| 'HEAD', |
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 | |
| exec("rm -rf '" . getcwd() . "/*'"); |
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
| // ==UserScript== | |
| // @name SE onebox collapsing overlay | |
| // @description Add the ability to collapse and expand oneboxes in SE chat | |
| // @version 1.1 | |
| // @author DaveRandom | |
| // @namespace https://github.com/DaveRandom | |
| // @match *://chat.stackexchange.com/rooms/* | |
| // @match *://chat.stackoverflow.com/rooms/* | |
| // @match *://chat.meta.stackoverflow.com/rooms/* | |
| // ==/UserScript== |
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 | |
| /** | |
| * Class URL | |
| * | |
| * @property string $scheme | |
| * @property string $user | |
| * @property string $pass | |
| * @property string $host | |
| * @property string $port |