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 / 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 <gustavomdsantos@pm.me>"
@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 (gustavomdsantos@pm.me)
// @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 May 16, 2025 01:13
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.
@gustavomdsantos
gustavomdsantos / Welcome-WhatsApp-Remover-icon.png
Last active June 16, 2025 21:31
"WhatsApp Web" Banner Remover - User JS for Tampermonkey / Greasemonkey / Violentmonkey.
Welcome-WhatsApp-Remover-icon.png
@gustavomdsantos
gustavomdsantos / Welcome-Google-Chat-Remover-icon.svg
Created January 10, 2024 20:52
"Welcome Google Chat" Banner Remover - User JS for Greasemonkey / Tampermonkey.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gustavomdsantos
gustavomdsantos / Agro.gov.br.md
Created December 20, 2023 17:37
Agro.gov.br - Logotipo de 2023-2026 do Ministério da Agricultura e Pecuária.

Agro.gov.br - Logotipo de 2023-2026 do Ministério da Agricultura e Pecuária.