Skip to content

Instantly share code, notes, and snippets.

View abcarroll's full-sized avatar

A.B. Carroll III abcarroll

View GitHub Profile
@abcarroll
abcarroll / install_debian_with_debootstrap_howto.md
Created October 18, 2024 06:53 — forked from varqox/install_debian_with_debootstrap_howto.md
Instructions how to install Debian using debootstrap
@abcarroll
abcarroll / build.sh
Created April 14, 2023 02:10 — forked from superboum/LICENCE.txt
Install Debian with Debootstrap + Grub EFI
#!/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]"
@abcarroll
abcarroll / build.sh
Created January 24, 2023 06:00 — forked from andrewc12/build.sh
Install Debian with Debootstrap + Grub EFI
#!/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]"
@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
# ====
# 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.
#
{
"syntaxErrors": {},
"ast": [
{
"Program": [
{
"ifStmt": [
{
"if": [
{
{
"ast": [
{
"Program": [
{
"stmt": [
{
"assignment": [
{
"dimExpr": [
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;
Compilation
<- Spacing CompilationUnit SUB? EOT;
_ <- [\u0000-\uFFFF] ;
SUB <- '\u001a' ;
EOT <- !_ ;
WS <- [ \t\r\n\u000C] ;
Spacing
<- ( WS+
@abcarroll
abcarroll / hash-file.php
Last active July 2, 2021 07:38
hash-file
#!/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