Skip to content

Instantly share code, notes, and snippets.

@hvrsim
hvrsim / install_nvim.sh
Created December 23, 2024 17:42
Neovim install script for ubuntu
#!/bin/sh
# Version of vim to install, you can check the neovim versions
# at https://github.com/neovim/neovim/tags
VERSION="v0.10.1"
# Create the build directory
mkdir -p ~/builds/
cd ~/builds/
#show link: underline
#set text(
size: 11.3pt,
)
#set page(
margin: (x: 0.6cm, y: 1.3cm),
)
#!/usr/bin/env bash
# Code from StackOverflow answer, link here:
# https://stackoverflow.com/questions/43128698/inlining-failed-in-call-to-always-inline-mm-mullo-epi32-target-specific-opti
get_instruction ()
{
[ -z "$1" ] && exit
func_name="$1[^1-9a-zA-Z_]"
/*
* MIT License
*
* Copyright (c) 2023 @cleanbaja
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
/*
* convert_vfct.c - convert VFCT ACPI table into multiple ATOMBIOS roms
*
* Copyright (C) 2023 by @cleanbaja
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@hvrsim
hvrsim / xsave_test.cc
Last active October 1, 2022 00:32
XSAVE profiler & information dumper
/*++
Copyright (c) 2022 cleanbaja, All Rights Reserved.
Module Name:
xsave_test.cc
Abstract:
C++ module for profiling/dumping the XSAVE family of instructions.
Author: