View gist:cab298061f58c4734fd4cd75f7cc97f1
BEGIN MESSAGE. | |
RaYyxqqFhOmFksm Up5kwFwLqC06oSW biD2UdkzdCtkU1Q TYmT2GFuxD6gucN | |
rbEPSlJZBokNyGA vd3S07jFTTKTCKq 6Xr2MZHgg6vmr8L WgOCVQgEeG2cp9E | |
DXaBZbVS2PxNyLe 8mAaFeimxu8R1I3 L7ybwzCY79ePatc yWp97QXS5BtkELl | |
YYvoPdk3R8w1PHJ apBItQo423EKB4u j2sDh0aLMzWSiL. | |
END MESSAGE. |
View unbound.conf
server: | |
verbosity: 1 | |
port: 53 | |
username: "jonny" | |
tls-cert-bundle: "/usr/local/etc/openssl@1.1/cert.pem" | |
auto-trust-anchor-file: "/usr/local/etc/unbound/root.key" | |
aggressive-nsec: yes | |
hide-identity: yes | |
hide-version: yes | |
prefetch: yes |
View conflict.php
<?php | |
trait One | |
{ | |
public function hello() | |
{ | |
echo 'Hello One' . PHP_EOL; | |
} | |
public function bye() |
View class.php
<?php | |
namespace Foo; | |
class MyClass | |
{ | |
use Bar; | |
} |
View trait.php
<?php | |
namespace Foo; | |
trait Bar | |
{ | |
public function baz(string $value): string | |
{ | |
// modify $value in some way | |
return mb_strtoupper($value) |
View standard-heredoc.php
<?php | |
$variable = <<<TOKEN | |
Some text | |
TOKEN; |
View jsonexception.php
<?php | |
try { | |
json_decode('{invalid{json', false, 512, JSON_THROW_ON_ERROR); | |
} catch (\JSONException $exception) { | |
MyLogger::error($exception->getMessage()); | |
} |
View 73-heredoc.php
<?php | |
class Foo | |
{ | |
public static function bar(bool $input) | |
{ | |
if ($input === true) { | |
$variable = <<<TOKEN | |
Hello | |
World! |
View 72-heredoc.php
<?php | |
class Foo | |
{ | |
public static function bar(bool $input) | |
{ | |
if ($input === true) { | |
$variable = <<<TOKEN | |
Hello | |
World! |
View 72-heredoc.php
<?php | |
// some class | |
// some method | |
// an if statement | |
$variable = <<<TOKEN | |
Hello | |
World! | |
TOKEN; |
NewerOlder