Skip to content

Instantly share code, notes, and snippets.

View gustavomdsantos's full-sized avatar
👨‍💻
Working as an IT manager

Gustavo Moraes gustavomdsantos

👨‍💻
Working as an IT manager
  • Universidade Federal de Goiás
  • Brasília, Distrito Federal
View GitHub Profile
@gustavomdsantos
gustavomdsantos / wifi-manager-setup.sh
Created September 24, 2025 17:09
Wi-Fi Manager - a systemd daemon for automating tasks with Linux wireless interfaces.
#!/bin/bash
# ==============================================================================
# Script: wifi-manager-setup.sh
# Description: Installer and uninstaller for the Wi-Fi management daemon.
# Author: Gustavo Moraes <[email protected]>
# ==============================================================================
# --- Variables ----------------------------------------------------------------
DAEMON_SCRIPT="wifi-manager-daemon.sh"
@gustavomdsantos
gustavomdsantos / tplink-archer-rtw88-driver-install.sh
Created September 24, 2025 17:05
Setup script for TP-Link Archer T2U Nano (AC600 model and similar, RTL8811AU chipset) driver for Debian-based systems (Linux kernel v6.14 or older).
@gustavomdsantos
gustavomdsantos / panic_blackout.ahk
Last active July 17, 2025 13:51
AHKv2 Panic Button - Creates a black and "always-on-top" full screen toogled by hotkey "Ctrl + Win + B". This "panic mode" hides the mouse cursor and disables common keyboard shortcuts such as "Alt + F4", "Esc" and "Alt + Tab".
#Requires AutoHotkey v2.0
#SingleInstance Force
; --- Keyboard shortcut to toggle panic mode ---
^#b::TogglePanic()
; Array to store the black windows for each monitor
global panicWindows := []
; Variable to track the panic mode state
@gustavomdsantos
gustavomdsantos / ffmpeg_makefile.sh
Created June 27, 2025 07:18
Custom FFmpeg Makefile - Builds a deb file from "yt-dlp/FFmpeg-Builds" latest release.
#!/usr/bin/env bash
set -euo pipefail
TARBALL_URL="https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz"
RELEASE_URL="https://github.com/yt-dlp/FFmpeg-Builds/releases/tag/latest"
TEMP_DIR="$(mktemp -d)"
TARBALL_NAME="ffmpeg.tar.xz"
PACKAGE_BASE="yt-dlp-ffmpeg"
ARCH="amd64"
MAINTAINER="Gustavo Moraes <[email protected]>"
@gustavomdsantos
gustavomdsantos / redmine-custom-font.user.js
Created May 30, 2025 00:10
Redmine Custom Font - User JS for Tampermonkey / Greasemonkey / Violentmonkey.
// ==UserScript==
// @name Redmine Custom Font
// @namespace https://github.com/gustavomdsantos
// @version 1.0
// @description Changes Redmine interface font to "Lato". Useful when "Helvetica" font (not suitable for screens) is installed on PC.
// @author Gustavo Moraes ([email protected])
// @match https://sistemas.agricultura.gov.br/redmine/*
// @icon https://www.redmine.org/favicon.ico
// @grant none
// @run-at document-start
@gustavomdsantos
gustavomdsantos / lufs_to_vr.sh
Last active May 25, 2025 14:05
Volume Relative (VR) is an informal percentage unit of measurement based on Loudness Units Full Scale (LUFS). It is read similarly to Volume Unit (VU), with the target 100% = -6 LUFS.
#!/bin/bash
#===========================================
# LUFS to Volume Relative (VR) Converter
# Simple implementation based on formula:
# VR = 9.09 * LUFS + 154.54
#===========================================
script_name="${SCRIPT_ALIAS:-$(basename "$0")}"
@gustavomdsantos
gustavomdsantos / bashrc-set-title.sh
Created May 24, 2025 16:01
~/.bashrc snippet for changing window terminal title. Original source: https://www.baeldung.com/linux/current-tab-title
function set-title() {
if [[ -z "$ORIG" ]]; then
ORIG=$PS1
fi
TITLE="\[\e]2;$*\a\]"
PS1=${ORIG}${TITLE}
}
set-title "Terminal - $PWD"
@gustavomdsantos
gustavomdsantos / Ruindows_Workarounds.ahk
Last active November 11, 2025 11:07
Ruindows Workarounds (AHKv2 script) - For a better user experience in Windows. Set "Always on top", laptop monitor brightness, and more.
/*
Workarounds for a better user experience in Windows.
Ruindows = Ruim + Windows
*/
#SingleInstance Force
;================= VARIABLES ===================
ScriptName := "Ruindows Workarounds"
@gustavomdsantos
gustavomdsantos / Ultimate Test Page for E-ink Screens - by gustavomdsantos.png
Last active May 27, 2024 16:29
Ultimate Test Page for Printers - by gustavomdsantos
Ultimate Test Page for E-ink Screens - by gustavomdsantos.png
@gustavomdsantos
gustavomdsantos / Mute-Mic.md
Last active April 30, 2024 18:15
Ícone de "Mute Mic" para keycap.