make arm_sdk_install
| #include <cstdint> | |
| #include <cstdio> | |
| #define RUSH_REFERENCE_FREQ 50 // MHz | |
| #define RUSH_INTERMEDIATE_FREQ 480 // MHz | |
| #define RUSH_R_DIVIDER 1 | |
| #define RUSH_MOD 65536 | |
| #define RUSH_R_OUT_DIVIDER 1 | |
| #define FPFD (RUSH_REFERENCE_FREQ / RUSH_R_DIVIDER) |
| # get valid mapping and fix it | |
| GET /test.activity_log_v1 | |
| # create new indewx with fixed mapping | |
| PUT /test.activity_log_v2/ | |
| { | |
| "mappings": { | |
| "properties": { | |
| "action": { | |
| "type": "keyword" |
| <?php | |
| $pattern = "| %12s | %12s | %12s | %-8s | %16s | %16s | %18s | %19s | \n"; | |
| echo sprintf( | |
| $pattern, | |
| 'regPaConfig', | |
| 'regPaConfig', | |
| 'ELRS Power', | |
| 'paSelect', |
| # 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)); | |
| } |