Skip to content

Instantly share code, notes, and snippets.

View Qix-'s full-sized avatar
Making an OS @oro-os

Josh Junon Qix-

Making an OS @oro-os
View GitHub Profile
Qix- /
Last active March 30, 2024 10:29

This is a diff between the xz-embedded repositories listed on github and at

$ git remote -v
github (fetch)
github (push)
origin (fetch)
origin (push)
Qix- / FIMImporter.cs
Last active July 16, 2023 06:11
The "F**cking Import my Mesh!!!" (.FIM) format for exporting from Blender to Unity.
using UnityEngine;
using UnityEditor.AssetImporters;
using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Collections.Generic;
[ScriptedImporter(1, "fim")]
public class FIMImporter : ScriptedImporter
Qix- /
Last active April 3, 2023 08:09
Eclectus Foods



  • Artischocke
  • Bete und Blätter (nährstoffreicher)
  • Bohnen (frisch, nicht getrocknet)
  • Borretsch (Art von Grünkohl)
  • Bok Choy (jede asiatische grüne Sorte)
  • Capsicum und Samen, alle Farben (rot enthält besonders viel Vitamin A, insbesondere die Samen)
Qix- / llvm-clang-cl-win32.cmake
Created April 10, 2022 02:38
LLVM 15 + MSVC 2021 Community Edition CMake Toolchain file
# Cross toolchain configuration for using clang-cl.
set(CMAKE_C_COMPILER "/usr/bin/clang-cl-15")
set(CMAKE_CXX_COMPILER "/usr/bin/clang-cl-15")
set(CMAKE_LINKER "/usr/bin/lld-link-15")
Qix- / test.h
Last active April 1, 2022 14:50
Tiny test suite for C
NOTE: I'm just including this here since it was
NOTE: useful for another project. There are some
NOTE: project-specific things in here; customize
NOTE: INIT_TEST, END_TEST and TEST to suite your
NOTE: needs.
#ifndef TEST_SUITE_H
#define TEST_SUITE_H
struct Bar {
enum Foo {
A = 1,
B = 2,
C = 4
using B = Bar;
Qix- / vox.ksy
Created November 6, 2021 09:02
Full MagickaVoxel .VOX kaitai struct definition. Should be completely conformant.
id: vox
file-extension: vox
endian: le
- id: magic
contents: ["VOX ", 0x96, 0x00, 0x00, 0x00]
- id: chunks
type: chunk
Qix- / dump-stack.c
Created September 28, 2021 18:37
Useful little Lua stack debugger
static const char * typecolor(int type) {
switch(type) {
case LUA_TBOOLEAN: return "\x1b[32m";
case LUA_TSTRING: return "\x1b[31m";
case LUA_TFUNCTION: return "\x1b[33m";
case LUA_TNUMBER: return "\x1b[94m";
case LUA_TLIGHTUSERDATA: return "\x1b[95m";
case LUA_TUSERDATA: return "\x1b[35m";
case LUA_TTABLE: return "\x1b[36m";
case LUA_TTHREAD: return "\x1b[37m";
Qix- / to-pdf.bat
Created September 17, 2021 12:02
Drop this into a .bat somewhere and you can then drag+drop one ore more images onto it to create a multi-page PDF document.
@echo off
if %1.==. goto No1
bash -xc "a=(); for i in $(seq $#);do a+=(\"$(wslpath \"${!i}\")\"); done; convert \"${a[@]}\" -auto-orient \"output$(suffix() { local v=$(cat); if ! [ $v -eq 0 ]; then printf ' (%%s)' $v ; fi ; } ; find . -name 'output*.pdf' "|" grep -E '^\./output( \([0-9]+\))?\.pdf$' "|" wc -l "|" suffix ).pdf\"" -- %*
goto End
echo No documents dropped onto script; terminating.
Qix- / EveryNoiseCopy.user.js
Created April 11, 2021 16:52
Ctrl+Click on tracks from to copy the artist/title from the "title" attribute
// ==UserScript==
// @match*
// ==/UserScript==
function attachCSS(css) {
const element = document.createElement('style');
element.setAttribute('type', 'text/css');
if ('textContent' in element) {
element.textContent = css;