Skip to content

Instantly share code, notes, and snippets.

View appleneko2001's full-sized avatar
😴
BURNOUT STAGE

appleneko2001

😴
BURNOUT STAGE
View GitHub Profile
@lukts30
lukts30 / shell.nix
Last active August 13, 2026 09:38
libguestfs NixOS 25.11 appliance
{
pkgs ? import <nixpkgs> { },
}:
let
stub-pacman = pkgs.writeTextFile {
name = "stub-pacman";
text = ''
#!/bin/sh
exit 0
'';
@lopestom
lopestom / 0. Android Firmware File Partition Description - devices
Last active September 5, 2026 03:33
Some information about firmware files
Some informations about partitions from Android devices.
@guest271314
guest271314 / javascript_engines_and_runtimes.md
Last active September 10, 2026 12:52
A list of JavaScript engines, runtimes, interpreters

V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.

SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on

@karlseguin
karlseguin / test_runner.zig
Last active September 11, 2026 18:00
Custom Zig Test Runner, better ouput, timing display, and support for special "tests:beforeAll" and "tests:afterAll" tests
// This is for the Zig 0.16.
// See https://gist.github.com/karlseguin/c6bea5b35e4e8d26af6f81c22cb5d76b/eb15512d6ae49663fa9df6c7a9725b20dab43edd
// for a version that workson Zig 0.15.2.
// See https://gist.github.com/karlseguin/c6bea5b35e4e8d26af6f81c22cb5d76b/1f317ebc9cd09bc50fd5591d09c34255e15d1d85
// for a version that workson Zig 0.14.1.
// in your build.zig, you can specify a custom test runner:
// const tests = b.addTest(.{
@denji
denji / 01-nvidia.conf
Last active September 19, 2026 12:58
/etc/modprobe.d/nvidia.conf.ini
# /etc/modprobe.d/nvidia.conf
#
# NVIDIA Linux kernel module options.
# Last audited against: open-gpu-kernel-modules 595.71.05
#
# Parameter types: all parameters are NvU32 (uint) unless noted as "string".
# The Linux kernel module_param() system accepts hex notation (0x...) for uint
# parameters; decimal and hex are both valid and equivalent.
#
# Some options are experimental or reserved for internal testing. Defaults may
@vejeta
vejeta / nvidia-340xx-fix-linux-6.3.patch
Created May 16, 2023 12:43
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-18 module for Linux 6.3.x
unchanged:
--- a/nv-mmap.c 2023-05-16 13:39:04.867479247 +0200
+++ b/nv-mmap.c 2023-05-16 13:47:10.858833967 +0200
@@ -312,7 +312,7 @@ int nvidia_mmap(
goto done;
}
- vma->vm_flags |= VM_IO;
+ vm_flags_set(vma, VM_IO);
}
@joanbm
joanbm / nvidia-470xx-fix-linux-6.3.patch
Created March 5, 2023 23:14
Tentative fix for NVIDIA 470.161.03 driver for Linux 6.3-rc1
From a77f2da778f4a62695a6c7d26bba674d59ad9170 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Sat, 25 Feb 2023 10:57:09 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.161.03 driver for Linux 6.3-rc1
---
common/inc/nv-linux.h | 13 +++++++++++++
nvidia-drm/nvidia-drm-gem-user-memory.c | 7 ++++---
nvidia-uvm/uvm.c | 2 +-
nvidia/nv-mmap.c | 12 ++++++------
define(["underscore", "jquery", "config/config"], function(e, t, n) {
function r(e, t) {
return i(e, null, null, !1, t)
}
function _(e, t, n, r) {
i(e, t, n, !0, r)
}
function i(e, r, _, i, s) {
@the-spyke
the-spyke / pipewire.md
Last active August 10, 2026 08:55
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@WhiteBlackGoose
WhiteBlackGoose / GenericTensor.md
Last active March 16, 2023 05:53
This is a short article about how I managed to implement basic generic tensor library

Generic tensor library in C# in a week

Hello!

For this article we take Tensor as a N-dimensional array whose last two axes might be interpreted as Matrix and/or the last axis might be interpreted as Vector. For TLDR the result is here.

What do we want?

  1. Tensors (N-dimensional storage)
  2. Implementation of methods and functions for working with tensors as with data storages