- Environment
export TARGET=arm-linux-gnueabihf
export CROSS_PREFIX=/opt/crosstools/$TARGET
mkdir -p $CROSS_PREFIX
mkdir ~/src ~/build| ( export RING_NAME=s2lm_orion && make -sj16 prepare_conf && make -sj16 && make -sj16 fs_image; ) |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| --help(){ | |
| cat<<'END' | |
| make-workflows: | |
| This script expands '*.src.yml' from $1 (default: script's directory) | |
| to $2 (default:REPO_ROOT/.github/workflows) with corresponding name '*.yml' | |
| Main goal is to dereference YAML anchors. |
| [alias] | |
| sta = status | |
| bra = branch | |
| co = checkout | |
| cos = checkout --recurse-submodule | |
| cosf = checkout --recurse-submodule --force | |
| root = rev-parse --show-toplevel | |
| toplevel = rev-parse --show-toplevel | |
| current-branch = rev-parse --abbrev-ref HEAD | |
| sub = submodule |
| #include <iostream> | |
| #include <thread> | |
| #include <chrono> | |
| #include <condition_variable> | |
| using namespace std; | |
| using namespace std::chrono; | |
| using namespace std::chrono_literals; | |
| std::mutex expiration_thread_work_mutex_; |
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| int n; | |
| cout << "Enter Fibonacci index: "; | |
| cin >> n; | |
| if(n <= 1){ | |
| cout << n << endl; | |
| } |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| var_is_unset(){ | |
| declare -rn var=$1 | |
| test -z ${var+x} | |
| } | |
| while test $# -gt 0 ;do | |
| case $1 in |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| var_is_unset(){ | |
| declare -rn var=$1 | |
| test -z ${var+x} | |
| } | |
| while test $# -gt 0 ;do | |
| case $1 in |