Skip to content

Instantly share code, notes, and snippets.

@gnattu
gnattu / ContentView.swift
Created January 22, 2024 13:55 — forked from unixzii/ContentView.swift
GPU particle system using Metal.
import SwiftUI
struct SmashableView: NSViewRepresentable {
typealias NSViewType = _SmashableNSView
let text: String
class _SmashableNSView: NSView {
@gnattu
gnattu / 0001-Revert-arm64-add-ID_AA64ISAR2_EL1-sys-register.patch
Last active June 28, 2022 22:01
Remove ID_AA64ISAR2_EL1 support from Linux 5.17 for VMware Fusion on Apple Silicon
From 82436c04ef3f9cacf1d19b2634d6bb50a27607ed Mon Sep 17 00:00:00 2001
From: gnattu <gnattuoc@me.com>
Date: Tue, 12 Apr 2022 16:08:12 +0800
Subject: [PATCH 1/3] Revert "arm64: add ID_AA64ISAR2_EL1 sys register"
This reverts commit 9e45365f1469ef2b934f9d035975dbc9ad352116.
---
arch/arm64/include/asm/cpu.h | 1 -
arch/arm64/include/asm/sysreg.h | 16 ----------------
arch/arm64/kernel/cpufeature.c | 11 -----------
@gnattu
gnattu / Custom-XD60-with-arrow-keys-for-Mac.kbd.json
Last active June 3, 2017 17:26
Custom XD60 with arrow keys for Mac
[
{
"name": "Custom XD60 with arrow keys for Mac",
"author": "gnattu",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-G1xx",
"plate": false,
"pcb": true
},
@gnattu
gnattu / cue_to_mp3.py
Created January 14, 2017 22:51 — forked from bancek/cue_to_mp3.py
CUE splitter using ffmpeg (to mp3)
cue_file = 'file.cue'
d = open(cue_file).read().splitlines()
general = {}
tracks = []
current_file = None