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]"
{
"syntaxErrors": {},
"ast": [
{
"Program": [
{
"ifStmt": [
{
"if": [
{
{
"ast": [
{
"Program": [
{
"stmt": [
{
"assignment": [
{
"dimExpr": [
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
@abcarroll
abcarroll / app.json
Created May 24, 2021 22:39
Example VmScript/JSON Unit (WIP)
{
"units": [
{
"name": "test",
"fn": [
{
"name": "main",
"param": [
{
"type": {
#include <stdlib.h>
#include <stdio.h>
//#include "test.h"
/**
* The following two struct's are basically an interface.
*/
// The VTable which will only ever be a single copy (normally)
struct _SomeClass_VTable
@abcarroll
abcarroll / ulopcodes.ll
Created November 10, 2020 02:13
An example PHP extension (ulopcodes) as LLVM IR
; ModuleID = '/home/ab/sail/project/sail-php-driver/ulopcodes.c'
source_filename = "/home/ab/sail/project/sail-php-driver/ulopcodes.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._zend_ulopcodes_globals = type { i8, i8 }
%struct._zend_ini_entry_def = type { i8*, i32 (%struct._zend_ini_entry*, %struct._zend_string*, i8*, i8*, i8*, i32)*, i8*, i8*, i8*, i8*, void (%struct._zend_ini_entry*, i32)*, i32, i16, i8 }
%struct._zend_ini_entry = type { %struct._zend_string*, i32 (%struct._zend_ini_entry*, %struct._zend_string*, i8*, i8*, i8*, i32)*, i8*, i8*, i8*, %struct._zend_string*, %struct._zend_string*, void (%struct._zend_ini_entry*, i32)*, i32, i8, i8, i8 }
%struct._zend_string = type { %struct._zend_refcounted_h, i64, i64, [1 x i8] }
%struct._zend_refcounted_h = type { i32, %union.anon }