Skip to content

Instantly share code, notes, and snippets.

View noxifoxi's full-sized avatar
😶
adhd, autism and depression

Sarah noxifoxi

😶
adhd, autism and depression
View GitHub Profile
@literallylara
literallylara / _install.sh
Last active December 12, 2025 19:43
Linux CEC Setup + Monitoring + Remote Control Keymap for Pulse-Eight CEC Adapter or DisplayPort
#!/bin/sh
# Resources:
# - https://wiki.archlinux.org/title/HDMI-CEC
# - https://man.archlinux.org/man/extra/v4l-utils/rc_keymap.5.en
# - https://man.archlinux.org/man/extra/v4l-utils/ir-keytable.1.en
# - https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html
# - https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html
# Make sure to replace card1-HDMI-A-2 with your own connector in: cec0-daemon-autostart.rules
@literallylara
literallylara / git-batch-pull.sh
Last active July 5, 2025 14:03
Batch pull git repositories recursively
#!/bin/sh
# @author literallylara
# USE AT YOUR OWN RISK!
# Inspired by https://gist.github.com/guitarrapc/2623623a0e1bc7fe86b5cf56e0c70d88
set -e # Exit on error
set -u # Treat unset variables as an error
MAX_DEPTH=-1
@literallylara
literallylara / wpctl-set-default-by-name.sh
Last active June 26, 2025 11:54
Like `wpctl set-default` but accepts a case-insensitive sink-name instead of an id
#!/bin/sh
query="$1"
debug="$2"
if [ -z "$query" ]; then
echo "Usage: $(basename "$0") <query> [debug]"
exit 1
fi
@keijiro
keijiro / disco.hlsl
Last active May 18, 2023 10:46
Disco mode shader for Windows Terminal
Texture2D shaderTexture;
SamplerState samplerState;
cbuffer PixelShaderSettings
{
float Time;
float Scale;
float2 Resolution;
float4 Background;
};
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active December 4, 2025 13:04
Make Firefox fast again
@plembo
plembo / vmwp-no3d-avail.md
Last active November 3, 2025 14:10
VMware Player: No 3d support available from the host

VMware Player: "No 3d support is available from the host"

NOTE: I no longer use VMware products, and on good authority this trick no longer works (see comments below).

Facts: VMware Player on Ubuntu 18.04 LTS with the standard Gnome desktop running an AMD WX-2100 graphics card. Both glxinfo and glxgears show 3d acceleration is enabled and working on the host. In addition to VMware Player, the host is also running the qemu-kvm/libvirtd stack from Ubuntu's official repositories. My use case for 3d accelerated graphics in a Windows guest is to occasionally play a Windows-only game.

Issue: Player barks this warning during installation of... anything.

Solution: This

@lats
lats / claim_all_the_things.js
Last active November 24, 2025 05:41
Tampermonkey script to claim all of the items within a Bundle on Itch.io
// ==UserScript==
// @name Activate all Itch.io Bundle downloads
// @version 1
// @include https://itch.io/bundle/download/*
// @include https://*.itch.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
// ==/UserScript==
$(document).ready(function() {
@lucasalvessouza
lucasalvessouza / install_postaman.sh
Created February 19, 2019 19:47
Install postman fedora
#!/bin/bash
wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz
sudo tar xvzf postman-linux-x64.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
cat << EOF > ~/.local/share/applications/postman2.desktop
[Desktop Entry]
Name=Postman
GenericName=API Client
@jakub-g
jakub-g / async-defer-module.md
Last active December 20, 2025 05:25
async scripts, defer scripts, module scripts: explainer, comparison, and gotchas

<script> async, defer, async defer, module, nomodule, src, inline - the cheat sheet

With the addition of ES modules, there's now no fewer than 24 ways to load your JS code: (inline|not inline) x (defer|no defer) x (async|no async) x (type=text/javascript | type=module | nomodule) -- and each of them is subtly different.

This document is a comparison of various ways the <script> tags in HTML are processed depending on the attributes set.

If you ever wondered when to use inline <script async type="module"> and when <script nomodule defer src="...">, you're in the good place!

Note that this article is about <script>s inserted in the HTML; the behavior of <script>s inserted at runtime is slightly different - see Deep dive into the murky waters of script loading by Jake Archibald (2013)

@ElementW
ElementW / uexplode.py
Created January 30, 2018 20:14
Python3 script to extract music from UE4 .uexp files
#!/usr/bin/env python3
import sys, os, errno
def mkdir_p(path):
try:
os.makedirs(path)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass