Instructions how to install Debian using debootstrap. Below instructions were verified to work with debootstrapping Debian 11.
This file contains 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
#!/bin/bash | |
set -e # Exit on error | |
DEVICE=$1 | |
[ -z "${DEVICE}" ] && echo "Usage $0 /dev/sdX" && exit 1 | |
udevadm info -n ${DEVICE} -q property | |
echo "Selected device is ${DEVICE}" | |
read -p "[Press enter to continue or CTRL+C to stop]" |
This file contains 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
#!/bin/bash | |
set -e # Exit on error | |
DEVICE=$1 | |
[ -z "${DEVICE}" ] && echo "Usage $0 /dev/sdX" && exit 1 | |
udevadm info -n ${DEVICE} -q property | |
echo "Selected device is ${DEVICE}" | |
read -p "[Press enter to continue or CTRL+C to stop]" |
This file contains 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
@test "Assignment Expressions": | |
@test "Assign variable to variable": | |
let $x = $y; | |
@test "Assign variable to variable with simple type": | |
let $x: int = $y; | |
@test "Literals": | |
// TODO: Strings |
This file contains 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
# ==== | |
# Sail/Lx Primary Expression Grammar (PEG) | |
# | |
# This PEG format is intended for use for the Pikaparser reference implementation metagrammar | |
# and closely follows a standard PEG format. | |
# | |
# (C) Copyright 2020-2021. MIT License. | |
# | |
This file contains 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
{ | |
"syntaxErrors": {}, | |
"ast": [ | |
{ | |
"Program": [ | |
{ | |
"ifStmt": [ | |
{ | |
"if": [ | |
{ |
This file contains 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
{ | |
"ast": [ | |
{ | |
"Program": [ | |
{ | |
"stmt": [ | |
{ | |
"assignment": [ | |
{ | |
"dimExpr": [ |
This file contains 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
fn testFnDecl() | |
{ | |
let $x = 0; | |
let $y: int = 10; | |
let $z: string = "Hello World"; | |
} | |
pub static fn testFnMore($a: int, $b: int): int | |
{ | |
let $x = 5; |
This file contains 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
Compilation | |
<- Spacing CompilationUnit SUB? EOT; | |
_ <- [\u0000-\uFFFF] ; | |
SUB <- '\u001a' ; | |
EOT <- !_ ; | |
WS <- [ \t\r\n\u000C] ; | |
Spacing | |
<- ( WS+ |
This file contains 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/php | |
<?php declare(strict_types=1); | |
/** | |
* Simple hashing utility using PHP | |
* | |
* @author A.B. Carroll III <[email protected]> | |
* @license MIT | |
* | |
* @see https://gist.github.com/abcarroll/47bc02fcd7573282f197e3782c6cbbeb |
NewerOlder