[TOC]
- Download Raspberry Pi Imager on laptop
- Setup network anyway...
- Setup each cluster nodes (raspberry pis)
- Write to Micro SD or USB drive using Raspberry Pi Imager, with SSH enabled
export type XOR<T extends any[]> = XORInternal1< | |
T, | |
XORInternal2<T, never>, | |
never | |
>; | |
type XORInternal2<T extends any[], R> = T["length"] extends 0 | |
? R | |
: XORInternal2<RemoveFirst<T>, keyof T[0] | R>; |
type ArrayToPromise = <T>(_: Array<T>) => Promise<T>; | |
type TransformType<Transform extends (a: any) => any, Type> = Transform extends (_: Type) => infer I ? I : never; | |
type ArrayOfNumber = Array<number>; | |
type PromiseOfNumber = TransformType<ArrayToPromise, ArrayOfNumber>; |
cmake_minimum_required(VERSION 3.10) | |
project(bmp) | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_BINARY_DIR}) | |
add_executable(dummy_bmp main.c bmp.c) |
/* from https://giscus.app/themes/light.css and https://giscus.app/themes/dark.css for dark mode */html:not(.dark) main{--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#2429 |
interface Pending { | |
resolve: (value: any) => void; | |
reject: (error: any) => void; | |
criticalSection: () => Promise<unknown>; | |
} | |
export function criticalSection(): <T>( | |
criticalSection: () => Promise<T> | |
) => Promise<T> { | |
const pending: Pending[] = []; |
/* ************************************************************************** */ | |
/* */ | |
/* ::: :::::::: */ | |
/* get_next_line.c :+: :+: :+: */ | |
/* +:+ +:+ +:+ */ | |
/* By: Juyeong Maing <[email protected]> +#+ +:+ +#+ */ | |
/* +#+#+#+#+#+ +#+ */ | |
/* Created: 2023/04/16 16:47:34 by Juyeong Maing #+# #+# */ | |
/* Updated: 2023/04/22 19:26:51 by Juyeong Maing ### ########.fr */ | |
/* */ |
[TOC]
Q := $(if $(filter 1,$(V) $(VERBOSE)),,@) | |
NAME := config.mk | |
$(NAME): variable_cc.mk variable_diagnostics.mk | |
$Qrm -f tmp_$@ | |
$Qcat variable_*.mk > tmp_$@ | |
$Qmv tmp_$@ $@ | |
$Qecho "Configure OK!" | |
$Qmake --no-print-directory clean |
#!/bin/bash | |
# link cache directories to goinfre | |
TARGET=( | |
"Caches" | |
"ApplicationSupport/Code/Cache" | |
"ApplicationSupport/Code/CachedData" | |
"ApplicationSupport/Code/CachedExtensions" |
FROM ubuntu:18.04 | |
# command: docker build -t janus-test:0.0.2 . | |
# install dependencies | |
RUN apt update && apt install -y \ | |
libjansson-dev \ | |
libconfig-dev \ | |
libnice-dev \ |