Skip to content

Instantly share code, notes, and snippets.

View rguiscard's full-sized avatar
💭
thinking

Robert Guiscard rguiscard

💭
thinking
View GitHub Profile
@rguiscard
rguiscard / add.c
Last active June 5, 2024 02:31
Compile mruby with Cosmopolitan Libc
# Example of mruby with cosmo.
# Compile with `../cosmo/bin/cosmocc -I ../mruby-3.3.0/build/cosmo/include add.c ../mruby-3.3.0/build/cosmo/lib/libmruby.a -o add`
# To run in Linux, do `./add`; to run in Windows, rename it to "add.com" and run under PowerShell `./add.com`.
#include <mruby.h>
#include <mruby/compile.h>
mrb_value add_int_method(mrb_state *mrb, mrb_value self)
{
mrb_int a = 0;
@rguiscard
rguiscard / uConsole.md
Last active May 14, 2024 11:37
uConsole tips and tricks

Installation with new image

Download image from uConsole github. Unzip with p7zip:

$> sudo apt-get install p7zip
$> p7zip -d uConsole_CM4_v1.3g_64bit.img.7z

Find the SD card, probably at /dev/sda. Write image with dd:

Keybase proof

I hereby claim:

  • I am rguiscard on github.
  • I am rguiscard (https://keybase.io/rguiscard) on keybase.
  • I have a public key ASBfhhjEmAWzySI0N0cSfW6VJQcw3LK9yAkFW80zcbozlwo

To claim this, I am signing this object: