This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl -w | |
| $| = 1; | |
| use sigtrap 'handler' => \&sigtrap, 'HUP', 'INT','ABRT','QUIT','TERM'; # ^C, etc | |
| while(1){ | |
| print "Working...\n"; | |
| sleep(2); | |
| } | |
| sub sigtap(){ | |
| print "Caught a signal\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <omp.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define MAX_THREADS 8 | |
| static long steps = 1000000000; | |
| double step; | |
| int main (int argc, const char *argv[]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0 on 'a' ~> 1 | |
| 1 on 'b' ~> 2 | |
| 2 on 'b' ~> 1 | |
| 1 on 'b' ~> 2 | |
| 2 on 'a' ~> 0 | |
| 0 on 'b' ~> 2 | |
| 2 on 'a' ~> 0 | |
| 0 on 'b' ~> 2 | |
| 2 on 'a' ~> 0 | |
| 0 on 'b' ~> 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Adventures in Updating Firmware on the X16 29 Sept 2024 | |
| # INSTRUCTION VERSION | |
| The following is originally based on the following URL (nearly a year old at the | |
| time of this text document): | |
| https://github.com/FlightControl-User/x16-flash/blob/1d9c5f8c11ac94d129bfdfe95393f154d718f1d8/README.md | |
| Please check for latest version, but all information below is consistent with this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # cgi-bin/publish.sh (chmod +x) | |
| SECRET='THIS IS YOUR SECRET WITH GITHUB' # <-- set this | |
| SIG_HDR="${HTTP_X_HUB_SIGNATURE_256:-}" # e.g. sha256=abc123... | |
| # read raw POST body (exact bytes) | |
| BODY="$(dd bs=1 count="${CONTENT_LENGTH:-0}" status=none 2>/dev/null)" | |
| # compute expected signature (hex) over raw body |