Skip to content

Instantly share code, notes, and snippets.

View ricochet's full-sized avatar

Bailey Hayes ricochet

  • Cosmonic
  • Cary, NC
  • 23:34 (UTC -04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ricochet on github.
  • I am ricochetcode (https://keybase.io/ricochetcode) on keybase.
  • I have a public key whose fingerprint is 03EA 0094 2AE9 F30D CCCF BA98 3787 F9F1 1BF9 637B

To claim this, I am signing this object:

@ricochet
ricochet / hooks
Last active September 29, 2021 17:29
Arch GRUB on UEFI with GPT and LUKS2 encryption
# should see that partition table is unknown
parted -s /dev/nvme1n1 print
# create new partition table
parted -s /dev/nvme1n1 mklabel gpt
# create (u)efi-boot partition
parted -s -a optimal /dev/nvme1n1 mkpart primary "0%" "512MiB"
parted -s /dev/sda set 1 esp on
@ricochet
ricochet / convertArray.cpp
Last active August 29, 2015 13:56
Exception when freeing malloc'd Int32ArrayBuffer.
#include <iostream>
extern "C"
{
void __attribute__((used, noinline)) emscripten_bind_processArray(int * arrayPtr, int arrayLength)
{
for (int i = 0; i < arrayLength; ++i)
{
printf("value: %d\n", arrayPtr[i]);
}
}