Skip to content

Instantly share code, notes, and snippets.

View SomethingGeneric's full-sized avatar
📎
support right to repair

Matt C SomethingGeneric

📎
support right to repair
View GitHub Profile
# ============================================================
# GLFW dependency
# ============================================================
message(STATUS "GLFW dependency")
set(glfw_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/glfw")
set(glfw_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/glfw")
set(glfw_CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${glfw_INSTALL_DIR}
-DGLFW_BUILD_EXAMPLES=OFF
@seia-soto
seia-soto / arm64e-linux.sh
Created July 5, 2020 11:21
Installs sbinger's arm64e toolchain to allow arm64e compilation on Linux
curl -LO https://github.com/sbingner/llvm-project/releases/download/v10.0.0-1/linux-ios-arm64e-clang-toolchain.tar.lzma
TMP=$(mktemp -d)
tar --lzma -xvf linux-ios-arm64e-clang-toolchain.tar.lzma -C $TMP
pushd $TMP/ios-arm64e-clang-toolchain/bin
find * ! -name clang-10 -and ! -name ldid -and ! -name ld64 -exec mv {} arm64-apple-darwin14-{} \;
find * -xtype l -exec sh -c "readlink {} | xargs -I{LINK} ln -f -s arm64-apple-darwin14-{LINK} {}" \;
popd
mkdir -p $THEOS/toolchain/linux/iphone
mv $TMP/ios-arm64e-clang-toolchain/* $THEOS/toolchain/linux/iphone/
rm -rf $TMP linux-ios-arm64e-clang-toolchain.tar.lzma
@sexnine
sexnine / jokes.py
Created October 5, 2021 01:48
Slash commands in cogs - Pycord
from discord.ext import commands
import discord
from . import api
from typing import Optional
from discord.app import Option
slash_categories = {
...
}