Skip to content

Instantly share code, notes, and snippets.

View PowerUser64's full-sized avatar
🤔
:thonk:

Blake North PowerUser64

🤔
:thonk:
View GitHub Profile
@Strus
Strus / clangd.md
Last active May 4, 2024 06:32
How to use clangd C/C++ LSP in any project

How to use clangd C/C++ LSP in any project

tl;dr: If you want to just know the method, skip to How to section

Clangd is a state-of-the-art C/C++ LSP that can be used in every popular text editors like Neovim, Emacs or VS Code. Even CLion uses clangd under the hood. Unfortunately, clangd requires compile_commands.json to work, and the only way to painlessly generate it is to use CMake.

But what if I tell you you can quickly hack your way around that, and generate compile_commands.json for any project, no matter how compilcated? I have used that way at work for years, originaly because I used CLion which supported only CMake projects - but now I use that method succesfully with clangd and Neovim.

Method summary

Basically what we need to achieve is to create a CMake file that will generate a compile_commands.json file with information about:

@NordicGamerFE
NordicGamerFE / performancemods.md
Last active March 31, 2024 00:50
Useful mods list

Useful Mods

Notice

This list has moved to a repo you can find here https://github.com/NordicGamerFE/usefulmods

Alkyaly has stopped maintaining their list they have given me the responsibility to maintain their list original list
A list of usefull mods for most major-played versions.
Any suggestions/complaints?
Join our discord or use the gist comments.

@unfa
unfa / FOSS-deverb.md
Created November 15, 2021 13:32
Open-Source Reverb Removal

The open-source audio production toolset is becoming more and more powerful and feature-complete with every year passing.

Something still missing from it are artist-friendly tools for reverb removal (both realtime and offline). Here's a list of existing open-source projects that could be used as basis for such tools:

https://github.com/HoerTech-gGmbH/openMHA https://github.com/fgnt/nara_wpe https://github.com/helianvine/fdndlp https://github.com/sas91/jhu-neural-wpe https://github.com/sjlee7/speech-dereverberation

@Bondrake
Bondrake / trim-generations.sh
Last active February 29, 2024 01:10
NixOS script to keep 10 generations or 7 days, whichever is more (configurable, profile is selectable)
#!/usr/bin/env bash
set -euo pipefail
## Defaults
keepGensDef=10; keepDaysDef=7
keepGens=$keepGensDef; keepDays=$keepDaysDef
## Usage
usage () {
printf "Usage:\n\t trim-generations.sh (defaults are: Keep-Gens=$keepGensDef Keep-Days=$keepDaysDef Profile=user)\n\n"
@wochap
wochap / gnome_40_wayland_nvidia.nix
Last active July 9, 2023 22:43
Nixos config for wayland and nvidia 470
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
# Get the last working revision with nvidia 460.x
nixos-unstable-pinned = import (builtins.fetchTarball {
name = "nixos-unstable_nvidia-x11-470.57.02";
@yuanwang-wf
yuanwang-wf / doom.txt
Last active April 9, 2021 11:24 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active February 19, 2024 09:42
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@Archetrix
Archetrix / index.html
Created September 20, 2019 13:48
Skype export parser including files from media-folder and links to other referenced files.
<!DOCTYPE html><html><head>
<!-- Copyright © Microsoft. All rights reserved. -->
<!--
Extended Version by A.Geesen (2019)
Fixed Code errors
Removed protection
Added auto-link to media/ files.
Added link to external references.
Unfolded the one-lined mess :)
-->
@ArtBIT
ArtBIT / GRUB_INIT_TUNE.md
Last active April 26, 2024 03:49
A collection of GRUB init tunes
@bradtraversy
bradtraversy / myscript.sh
Last active May 2, 2024 13:59
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"