Skip to content

Instantly share code, notes, and snippets.

View nicdgonzalez's full-sized avatar

Nicolas Gonzalez nicdgonzalez

  • Florida, USA
  • 03:31 (UTC -04:00)
View GitHub Profile
@nicdgonzalez
nicdgonzalez / get-paper-server.sh
Last active July 6, 2024 06:00
Download PaperMC's server file. Defaults to the latest version.
#!/usr/bin/bash
if [ $1 == "--help" ] || [ $1 == "-h" ]; then
echo "USAGE: $(basename "$0") [minecraft_version] [paper_build]"
exit 0
fi
URL="https://api.papermc.io/v2/projects/paper"
if [ $# -lt 1 ]; then
@nicdgonzalez
nicdgonzalez / boot.asm
Last active January 6, 2024 19:23
"Hello, World!" in x86-64 Assembly for the BIOS environment. Written from scratch (no tutorials). I'm proud of it, but not proud enough for it to go in it's own repository; instead, it will live here in a Gist instead.
[BITS 16] ; 16-bit code
[ORG 0x7C00] ; BIOS loads the boot sector at 0x7C00
jmp start ; Jump to the `start` label
message db "Hello, World!", 0 ; The message to print
length equ ($ - message) ; The length of `message` (difference of the
; current address and the address of `message`)
start:
mov si, message ; Load the address of `message` into SI