Command to create hex file:
xxd -i wallpaper.jpeg > wallpaper.h
Example:
extern const unsigned char wallpaper[];| <?php | |
| declare(strict_types=1); | |
| use Rector\Config\RectorConfig; | |
| use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector; | |
| use Rector\Php70\Rector\FuncCall\MultiDirnameRector; | |
| use Rector\Php70\Rector\StmtsAwareInterface\IfIssetToCoalescingRector; | |
| use Rector\Php70\Rector\Ternary\TernaryToNullCoalescingRector; | |
| use Rector\Php71\Rector\List_\ListToArrayDestructRector; |
Command to create hex file:
xxd -i wallpaper.jpeg > wallpaper.h
Example:
extern const unsigned char wallpaper[];| #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}`; |