Skip to content

Instantly share code, notes, and snippets.

@harold-b
harold-b / dear imgui, selectable popup example
Created August 6, 2016 18:39
A functional selectable pseudo-popup window example using dear imgui, for use with autocomplete or input history.
const int ENTRY_COUNT = 10;
const char* ENTRIES[ENTRY_COUNT] =
{
"Entry 0",
"Entry 1",
"Entry 2",
"Entry 3",
"Entry 4",
"Entry 5",
@harold-b
harold-b / HaxeJSObject.hx
Last active June 20, 2017 20:34
Hacky haxe plain javascript object with JS for/in key value loop.
package;
typedef Union2<T1,T2> = haxe.extern.EitherType<T1,T2>;
abstract JSObject( Dynamic ) from Dynamic to Dynamic
{
public inline function new()
{
this = {};
}
@harold-b
harold-b / IntelGfxUbuntu20.04MacBookPro10-1.md
Last active February 15, 2024 01:47
Enable Intel Graphics on Ubuntu 20.04 on MacBook Pro Mid 2012 Retina (10,1)

How to get Intel graphics working on MacBook Pro mid 2012 (10,1) Ubuntu 20.04:

Ubuntu was intalled with the default nvidia drivers that it brought (I believe 3.90)

Clone https://github.com/0xbb/apple_set_os.efi

For details, see the README.md

Build it:

### Keybase proof
I hereby claim:
* I am harold-b on github.
* I am hbrenes (https://keybase.io/hbrenes) on keybase.
* I have a public key ASCzbHUfLxq8Is5VtlwA8cOP__7fo7oB9IddgTzAVW743Qo
To claim this, I am signing this object:
@harold-b
harold-b / disable_aer_wrx80_sage.md
Created August 2, 2022 22:34
Disable AER error spam on Asus Pro WS WRX80E-SAGE SE WIFI

Simple script to add to /etc/rc.local in order to disable AER spam issue on Asus Pro WS WRX80E-SAGE SE WIFI motherboards

This will disable the error spam for each pcie device listed in the ids array

#!/bin/bash
set -eo pipefail
@harold-b
harold-b / krgpg.cmd
Created August 9, 2022 00:31
Use kr codesign on windows fallback to WSL.
@echo OFF
setlocal enabledelayedexpansion
wsl.exe krgpg %*