Self Signing CA for local dev
openssl req -x509 -nodes -newkey rsa:4096 -keyout ca.key -out ca.crt -days 365 -subj "/CN=poseidon"
Server
{ | |
"files.exclude": { | |
"**/node_modules": true | |
}, | |
"debug.console.fontFamily": "JetBrains Mono", | |
"debug.console.fontSize": 14, | |
"debug.console.lineHeight": 25, | |
"debug.toolBarLocation": "docked", | |
"editor.codeLens": true, | |
"editor.fontFamily": "'JetBrains Mono', 'Fira Code', 'Consolas','monospace'", |
const withdrawMachine = Machine( | |
{ | |
id: 'withdraw', | |
initial: 'created', | |
context: { | |
signatures: 0, | |
corum: 3 | |
}, | |
states: { | |
created: { |
<?php | |
// https://phpsandbox.io/n/steep-union-wnew-ndjxv | |
function xml_get( | |
SimpleXMLElement|string $xml, | |
string $path, | |
mixed $default = null | |
): mixed | |
{ |
<?php | |
use Spatie\DataTransferObject\DataTransferObject; | |
class Customer extends DataTransferObject | |
{ | |
/** @var int|string $id */ | |
public $id; | |
public string $alias; | |
public string $name; |
<?php | |
function saveToEnvFile(string $dotEnv, string $pattern, string $label, ?string $value): bool | |
{ | |
$readFrom = fopen($dotEnv, 'r'); | |
$writeTo = tmpfile(); | |
$isDirty = false; | |
while (!feof($readFrom)) { | |
$line = fgets($readFrom); |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
namespace Symfony\Component\Console\Input;
use Symfony\Component\Console\Exception\RuntimeException;
class ArgvInput extends Input
{
protected function parse()
{
<?php | |
// .............................................. | |
// V2 | |
// .............................................. | |
use Spatie\DataTransferObject\DataTransferObject; | |
class Item extends DataTransferObject | |
{ |