Skip to content

Instantly share code, notes, and snippets.

View GloriousEggroll's full-sized avatar

Thomas Crider GloriousEggroll

View GitHub Profile
@GloriousEggroll
GloriousEggroll / automount.sh
Last active January 6, 2024 00:17
Tries to mount any partitions that are not mounted under user id 1000
#!/bin/bash
while IFS= read -r partition; do
# get all partitions that are not mounted. column 7 lists active mountpoints
if [[ "$(echo $partition | awk '{ print $7 }')" == "" ]]; then
# for all partitions without a mountpoint get partition name, device path, and filesystem type
partition_name="$(echo $partition|awk '{ print $1 }' | sed 's/^..//')"
tomount="/dev/$partition_name"
filesystem=$(lsblk -f | grep $partition_name | awk '{ print $2 }')
# if the filesystem type isn't a lux partition, attempt to automount it
Syntax 6
Comment "Vangogh internal card"
#
# Macro CtlRemapMonoToStereoVolSw - join two mono controls into one stereo
#
# Arguments:
# Type - Volume or Switch
# Stereo - Name of the stereo control to be created
From a19fe8c2f6b9cdda194ca8d51c025389067a068a Mon Sep 17 00:00:00 2001
From: Jan Grulich <grulja@gmail.com>
Date: Tue, 7 Feb 2023 14:05:29 +0100
Subject: Allow to dlopen openh264
---
media/BUILD.gn | 3 +++
media/media_options.gni | 4 +++
media/video/BUILD.gn | 19 ++++++++++++-
media/video/openh264.sigs | 9 +++++++
#!/bin/bash
# this is a hack to disable Discord from trying to update itself. We are only able to receive discord updates from our package repo.
if [ ! -f $HOME/.config/discord/settings.json ];then
mkdir -p $HOME/.config/discord/
echo '{' > $HOME/.config/discord/settings.json
echo ' "SKIP_HOST_UPDATE": true' >> $HOME/.config/discord/settings.json
echo '}' >> $HOME/.config/discord/settings.json
else
if [[ -z $(cat $HOME/.config/discord/settings.json | grep SKIP_HOST_UPDATE) ]]; then
From c3014c9bd771d5624230ebf464ba20816b9b2479 Mon Sep 17 00:00:00 2001
From: GloriousEggroll <gloriouseggroll@gmail.com>
Date: Sat, 8 Jul 2023 04:07:16 -0600
Subject: [PATCH] Don't impose limits on gpu voltage,cpu voltage,screen
brightness,backlight if the device is in charging mode
---
.../steamos-polkit-helpers/steamos-priv-write | 52 +++++++++++--------
1 file changed, 30 insertions(+), 22 deletions(-)
From a105b11a9d1d8be33cd9ba29da41314c1abf7c82 Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Date: Fri, 1 Jul 2022 11:44:36 +0200
Subject: [PATCH] avcodec/cbs: Add specialization for
ff_cbs_(read|write)_unsigned()
These functions allow not only to read and write unsigned values,
but also to check ranges and to emit trace output which can be
beautified when processing arrays (indices like "[i]" are replaced
by their actual numbers).
@GloriousEggroll
GloriousEggroll / steam-game-fixups.sh
Last active October 9, 2023 23:06
steam native linux game fixups
#!/usr/bin/bash
SteamShutdown() {
if [[ ! -z $(ps aux | grep "steam.sh" | grep -v color | grep -v grep) ]]; then
steamwasrunning=1
steam -shutdown > /dev/null 2>&1 &
while [[ ! -z $(ps aux | grep "steam.sh" | grep -v color | grep -v grep) ]]; do
sleep 1
done
fi
#!/bin/bash
set -eu
if [[ $EUID -ne 0 ]];
then
exec pkexec --disable-internal-agent "$0" "$@"
fi
WRITE_PATH="$1"
@GloriousEggroll
GloriousEggroll / gnome-44-vrr.patch
Last active April 26, 2023 08:13
gnome-mutter-44-vrr
diff --git a/panels/display/cc-display-config-dbus.c b/panels/display/cc-display-config-dbus.c
index 83a49ade9..91ca02da0 100644
--- a/panels/display/cc-display-config-dbus.c
+++ b/panels/display/cc-display-config-dbus.c
@@ -280,7 +280,6 @@ cc_display_logical_monitor_class_init (CcDisplayLogicalMonitorClass *klass)
gobject_class->finalize = cc_display_logical_monitor_finalize;
}
-
typedef enum _CcDisplayMonitorUnderscanning
#!/bin/sh
if [ -d \"$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat\" ]; then rm -rf \"$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat\"; fi