create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
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 "your_email@youremail.com"
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 | |
{ |
#!/bin/bash | |
encryptedPayloadFile="" | |
privateKeyFile="" | |
outputFile="" | |
function diy() { | |
cat <<EOF | |
openssl enc -base64 -A -d -in payload.cipher.base64 -out payload.cipher |
bash arguments options stdin flags | |
required | |
optional | |
./cmd arg1 agr2 --debug --output=test.txt | |
Args: | |
- arg1 |