Skip to content

Instantly share code, notes, and snippets.

View MartinRJDagleish's full-sized avatar
💻
Coding / learning

Martin Dagleish MartinRJDagleish

💻
Coding / learning
  • LMU Munich
  • Regensburg, Germany
  • 09:31 (UTC +02:00)
View GitHub Profile
@gunvirranu
gunvirranu / vec3d.hpp
Last active August 22, 2023 20:59
A simple, sensible, and general 3D vector type for C++
// Created by: Gunvir Ranu
// License: WTFPL
//
// If you want to use another type or don't like the `real` alias, a simple
// find and replace should suffice. If you really wanna get generic, throw this
// bad boy in a `template <typename real>` and you're set.
#include <ostream>
#include <cmath>
@hamidzr
hamidzr / sof-audio-setup-carbonx1.sh
Last active June 2, 2023 01:43
Lenovo Carbon X1 Gen 7 - Audio and microphone fix - https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_7) might be all you need.
#!/bin/bash
# README You probablyl don't need this script anymore. Please read the comments below to catch up.
## Description
# Lenovo Carbon X1 Gen 7 - Audio and microphone fix - kernel 5.3+ required.
# The script has only been tested for Arch and OpenSuse,
# Original thread: https://forums.lenovo.com/t5/Ubuntu/Guide-X1-Carbon-7th-Generation-Ubuntu-compatability/td-p/4489823
# Prereq: Install Linux 5.3 or newer