Skip to content

Instantly share code, notes, and snippets.

View zerotri's full-sized avatar

Wynter Woods zerotri

  • Santa Rosa, California
View GitHub Profile
@linderd
linderd / README.md
Last active April 24, 2025 11:58 — forked from timlinux/README.md
Linux on Thinkpad P14s Gen2 AMD / T14 Gen2 AMD

Linux (Fedora 35) on a Thinkpad P14s [T14] Gen2 AMD

These are my installation-tricks and notes for running Linux on a 2021 Thinkpad P14s Gen2 with AMD Ryzen 7 5850U. It should also be suitable for the Thinkpad T14 Gen2 AMD as they are technically the same modell.
Meanwhile there is also a good test on youtube and an entry in the arch-wiki, which also comments some points mentioned here.

Detailed specs

Shipped:

@harrykipper
harrykipper / ath10k_improve_tx_rate.patch
Last active October 29, 2023 12:10
ath10k patch to improve upload speeds
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -3399,6 +3399,8 @@
const struct ieee80211_hdr *hdr = (void *)skb->data;
__le16 fc = hdr->frame_control;
+ skb_orphan(skb);
+
if (!vif || vif->type == NL80211_IFTYPE_MONITOR)
return ATH10K_HW_TXRX_RAW;
@Junch
Junch / function.cpp
Created October 10, 2018 10:06
std::function implementation
/******************************************************************************
https://stackoverflow.com/questions/18453145/how-is-stdfunction-implemented
*******************************************************************************/
#include <iostream>
#include <memory>
template <typename T>
{
"app-id": "org.apitrace.Apitrace",
"runtime": "org.kde.Platform",
"runtime-version": "5.11",
"sdk": "org.kde.Sdk",
"command": "qapitrace",
"modules": [
{
"name": "apitrace",
"buildsystem": "cmake",
@jmoy
jmoy / thin-film.ipynb
Last active November 18, 2018 19:51
Why soap bubbles are colorful and windowpanes are not
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <stdio.h>
#include <SDL2/SDL.h>
const int WIN_WIDTH = 640;
const int WIN_HEIGHT = 480;
int main(int argc, char **argv){
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
printf("SDL_Init failed: %s\n", SDL_GetError());
return 1;
@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active November 19, 2025 21:19
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@Gadgetoid
Gadgetoid / README.md
Last active July 19, 2025 18:46
Raspberry Pi Zero / Windows 10 automatic RNDIS driver install for composite gadgets

Preface

I owe my very rapid learning journey in the world of ConfigFs to several key sources which aren't necessarily relevant to this result, but I feel deserve a mention anyway.

@lauromoura
lauromoura / meson.build
Created October 24, 2017 05:10
Meson build for simple efl C# projects
project('button', 'cs')
mono = dependency('efl-mono')
# Somehow meson doesn't seem to be passing the --libs option correctly to
# the mono compiler
mono_libs = mono.get_pkgconfig_variable('mono_libs')
executable('button', 'button.cs', dependencies : mono, cs_args : mono_libs)
@Jjagg
Jjagg / Game1.cs
Last active August 25, 2021 01:51
MonoGame backend sample for ImGui.NET (https://github.com/mellinoe/ImGui.NET)
using System;
using System.Runtime.InteropServices;
using ImGuiNET;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Vector2 = ImGuiNET.Vector2;
using Vector3 = ImGuiNET.Vector3;
using Vector4 = ImGuiNET.Vector4;