View v1.php
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
public function appendResponse(Response $response) | |
{ | |
try { | |
$events = \json_try_decode($response->getBody(), true); | |
} catch (DecodeErrorException $e) { | |
$this->logger->emergency('Failed to decode response body as JSON', ['exception' => $e]); | |
throw new DecodingFailedException('Failed to decode response body as JSON', $e->getCode(), $e); | |
} |
View GitAmptest.php
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 declare(strict_types = 1); | |
namespace ekinhbayar\GitAmpTests\Client; | |
use Amp\Artax\Client; | |
use Amp\Artax\ClientException; | |
use Amp\Artax\Response; | |
use Amp\Promise; | |
use Amp\Success; | |
use ekinhbayar\GitAmp\Client\RequestFailedException; |
View gist:e316e1e0248bc592ac0990c49525d115
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
E.. | |
Time: 679 ms, Memory: 6.00MB | |
There was 1 error: | |
1) Amp\Dns\Test\IntegrationTest::testResolve | |
RuntimeException: Unknown error file getting key '\1'. | |
EXIT: 1 |
View so-golden
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
I'm voting to close this question as off-topic because it has nothing to do with programming – PeeHaa 1 hour ago | |
Excuse me, but although I AM a programmer, for the past 35 YEARS, and a very experienced one at that, IT TAKES programming to figure this out. So, using apt-get update and apt-get INSTALL doesn't work to fix the problem. SO, excuse, me, but where else can I go to find a solution except the best place on the web for questions. NOT every question MUST deal with PROGRAMMING or perhaps, there "IS" a programming feature I NEED to do, through TERMINAL to "light up" the ethernet port. I AM 54 years old and need a solution. Instead of VOTING to destroy this question, how about we find a solution. – Peter 22 mins ago | |
BTW, we're ALL programmers here.... perhaps a bit of thinking together, vice VOTING my question OUT the window would be more of a prudent solution, don't you all think? We do that together in a real world work environment. How intelligent would it be if we simply told |
View gist:3e7015617ee8cc32569d
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 IPv6Address | |
{ | |
/** | |
* @var int[] | |
*/ | |
private $words; | |
/** |
View gist:370cb0940ac2efbcc41c
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 | |
$song = new StdClass; | |
$song->artist = '" onmouseover="alert(\'all your base are belong to us\')" foo="'; | |
?> | |
<form action="#"> | |
<input type="text" name="xss" value="<?php if (isset($song->artist)) echo $song->artist; ?>"> | |
</form> |
View explain.php
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 | |
echo "'$2a$08$KHiiru4yzYh141GUh2xIMew//bCc7rxMuY1rtDApwA66/czIiurLi'"; |
View routing-pitchblade.php
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 | |
use PitchBlade\Storage\ImmutableArray; | |
use PitchBlade\Network\Http\Request; | |
use PitchBlade\Router\Path\SegmentFactory; | |
use PitchBlade\Router\Path\Factory as PathFactory; | |
use PitchBlade\Router\Route\Factory as RouteFactory; | |
use PitchBlade\Router\Router; | |
use PitchBlade\Router\NotFoundException; | |
use PitchBlade\Router\Route\AccessPoint; |
View CustomEtsy.php
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 | |
use OAuth\OAuth1\Service\Etsy; | |
use OAuth\OAuth1\Signature\SignatureInterface; | |
use OAuth\Common\Consumer\CredentialsInterface; | |
use OAuth\Common\Http\Uri\UriInterface; | |
use OAuth\Common\Storage\TokenStorageInterface; | |
use OAuth\Common\Http\Client\ClientInterface; | |
class CustomEtsy extends Etsy |
View mail-regex-tester.php
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 | |
if (isset($_POST['submit'])) { | |
$html = file_get_contents('http://fightingforalostcause.net/misc/2006/compare-email-regex.php'); | |
$dom = new DOMDocument(); | |
@$dom->loadHTML($html); | |
//$results = $dom->getElementById('results'); |
NewerOlder