make arm_sdk_install
# Set new | |
curl -XPUT --unix-socket /var/run/control.unit.sock http://localhost/config/applications/app/processes -d 100 | |
# Read current | |
curl --unix-socket /var/run/control.unit.sock http://localhost/config/applications/app/processes |
/** | |
* Used with JetBrains HTTP Client on OAuth authenticate requests to log unpacked fetched OAuth2 access token and its details | |
* | |
* @see https://gitlab.auroraglobal.com/maverix/jetbrains-toolkit | |
*/ | |
function atob(data) { | |
if (arguments.length === 0) { | |
throw new TypeError("1 argument required, but only 0 present."); | |
} | |
data = `${data}`; |
curl -XPOST -H 'Content-Type: application/x-www-form-urlencoded' \ | |
http://localhost:8080/auth/realms/{realm}/protocol/openid-connect/token \ | |
-d 'grant_type=client_credentials&client_id={client}&client_secret={sectet}' \ | |
2>/dev/null | jq '.access_token | split(".") | .[0],.[1] | @base64d | fromjson' |
<?php | |
function sessionDataUnserialize($serializedData) { | |
$return_data = array(); | |
$offset = 0; | |
while ($offset < strlen($serializedData)) { | |
if (!strstr(substr($serializedData, $offset), "|")) { | |
throw new Exception("invalid data, remaining: " . substr($serializedData, $offset)); | |
} |
<?php | |
$passphrase = 'some-passphrase'; | |
$text = 'Hello world!'; | |
$method = 'AES-256-CBC'; | |
// passphrase | |
$passphrase = hash('sha256', $passphrase, true); |
# create private key with passphrase | |
openssl genrsa -out config/jwt/private.pem -aes256 4096 | |
# Write public key | |
openssl rsa -pubout -in private.pem -out public.pem |