Skip to content

Instantly share code, notes, and snippets.

View dgunay's full-sized avatar

Devin Gunay dgunay

View GitHub Profile
@dgunay
dgunay / budget.bat
Last active April 7, 2019 02:14
Perl script that will budget a given dollar amount for after-expenses-and-retirement uses.
@echo off
perl %~dp0\budget %*
@dgunay
dgunay / nightlight
Last active October 16, 2022 23:06
GNOME nightlight script
#!/usr/bin/env perl
# Turns the GNOME display night light feature on/off. If you don't supply
# an on/off argument, it will toggle the current state.
use strict;
use warnings;
my $setting = $ARGV[0] // '';
die "usage: nightlight [on|off]\n" if $setting =~ /^(-h|--help)$/;
@dgunay
dgunay / gist:0eea4dc528c55d30906429e9419d8264
Created May 18, 2024 01:08
Output of `sudo dmesg | rg -i 'snd|sof|pci'` with dynamic debugging on
[ 15.924732] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx : 0x45000006|0x2
[ 15.925086] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx reply: 0x65000000|0x2
[ 15.925092] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx done : 0x45000006|0x2
[ 15.925095] snd_sof:sof_ipc4_route_setup: sof-audio-pci-intel-mtl 0000:00:1f.3: bind mixin.1.1:0 -> mixout.2.1:0
[ 15.925096] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx : 0x45000002|0x3
[ 15.925420] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx reply: 0x65000000|0x3
[ 15.925431] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx done : 0x45000002|0x3
[ 15.925436] snd_sof:sof_ipc4_route_setup: sof-audio-pci-intel-mtl 0000:00:1f.3: bind mixout.2.1:0 -> gain.2.1:0
[ 15.925440] snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc tx : 0x45000003|0x10006
[ 15.92582
@dgunay
dgunay / RtHDDump.txt
Created May 20, 2024 02:39
RtHDDump and linux dump of realtek HD Audio driver initialization
This file has been truncated, but you can view the full file.
PCI ID ==> INTELAUDIO\DSP_CTLR_DEV_7E28&VEN_8086&DEV_0222&SUBSYS_CA07144D&REV_0020\4&39C50A27&0&0800
INTELAUDIO ID ==> INTELAUDIO\FUNC_01&VEN_10EC&DEV_0298&SUBSYS_144DCA07&REV_1001 <Realtek High Definition Audio>
< RtHDDump.exe file version V2.3.0.6 >
File version => 6.0.9646.1
File internal name=> RTKVHD64.sys 9646
<9646> <RTKVHD64.sys 9646>
Model index = 512
Wid=12 Codec=411111F0 Drv=411111F0 Loc=00000000