Skip to content

Instantly share code, notes, and snippets.

View billywhizz's full-sized avatar
🤓
always be learning

Andrew Johnston billywhizz

🤓
always be learning
View GitHub Profile
@billywhizz
billywhizz / .config
Last active May 31, 2024 12:33
kernel boot logs for firecracker recommended 5.1 kernel versus minimal 6.1 kernel
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.1.5 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23800
@billywhizz
billywhizz / README.md
Last active May 28, 2024 19:44
Example of Creating a shared library binding for lo.js

** warning: lo.js is experimental and you should run it in a container or somewhere you don't care too much about until it has a stable release **

# clone this gist somewhere
git clone https://gist.github.com/billywhizz/b056fedf41f58f2be8971f2103b264cf
# rename the folder to hello - lo will use the parent folder name as the name 
# of the "app"
mv b056fedf41f58f2be8971f2103b264cf hello
cd hello
@billywhizz
billywhizz / README.md
Created May 28, 2024 11:30
JS TypedArray .slice() Issue

1

@billywhizz
billywhizz / pdlsym.c
Created May 27, 2024 09:02 — forked from resilar/pdlsym.c
dlsym() for remote processes
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <unistd.h>
struct elf {
@billywhizz
billywhizz / .gitignore
Last active May 18, 2024 22:37
JS Runtime ReadFileSync Investigation
*.bin
@billywhizz
billywhizz / README.md
Last active May 17, 2024 17:50
JS Runtime Task Running MicroBench

This is a simple benchmark to compare runtime overhead when running multiple, sequential, non-JS tasks from package.json.

https://x.com/justjs14/status/1791518402776863117

In order to run you will need to clone this gist to a directory that has no package.json or deno.json in the ancestor directory tree

cd /tmp && git clone https://gist.github.com/ece1daa5317adab8256a118a12717512.git
@billywhizz
billywhizz / .gitignore
Last active April 7, 2024 20:22
Crow v Bun HTTP Hello Shootout
build
*.json

on linux

gcc -shared -O3 -o libadd.so test.c

on macos

clang -shared -O3 -o libadd.dylib test.c

on windows

@billywhizz
billywhizz / package.json
Last active March 29, 2024 00:09
running programs from package.js on lo runtime
{
"name": "foo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"foo": "/bin/ls -lah && /bin/ls -lah && /bin/ls -lah"
},
"author": "",
"license": "ISC"
@billywhizz
billywhizz / build.sh
Created March 28, 2024 23:09
deno demo
deno compile --allow-env --allow-read --allow-write --allow-net --allow-ffi --unstable-ffi sql.ts