Skip to content

Instantly share code, notes, and snippets.

View flipeador's full-sized avatar
🇦🇷

Matías Juarez flipeador

🇦🇷
View GitHub Profile
@flipeador
flipeador / twitch-chatter-count.js
Last active June 14, 2025 04:56
Show Twitch channel chatter count next to the channel viewer count.
// ==UserScript==
// @name Twitch Chatters Count
// @author Flipeador
// @version 1.0.2
// @icon https://www.google.com/s2/favicons?sz=128&domain=twitch.tv
// @homepageURL https://gist.github.com/flipeador/7cdead05b6f00b34b743dbde071db34d
// @downloadURL https://gist.githubusercontent.com/flipeador/7cdead05b6f00b34b743dbde071db34d/raw/twitch-chatter-count.js
// @match *://www.twitch.tv/*
// @run-at document-idle
// ==/UserScript==
// ==UserScript==
// @name Bluesky Translate
// @author Flipeador
// @version 1.0.0
// @icon https://www.google.com/s2/favicons?sz=128&domain=bsky.app
// @homepageURL https://gist.github.com/flipeador/56ca9b5798987d175f0a5e9bc97f6977
// @downloadURL https://gist.github.com/flipeador/56ca9b5798987d175f0a5e9bc97f6977/raw/bluesky-translate.js
// @match *://bsky.app/*
// @run-at document-idle
// ==/UserScript==
@flipeador
flipeador / enable-hibernate.bat
Created May 4, 2025 03:19
Enable the hibernate feature in Windows.
@echo off
powercfg.exe /h /size 100
powercfg.exe /h /type full
control.exe /name Microsoft.PowerOptions /page pageGlobalSettings
pause
@flipeador
flipeador / move-active-hours.ahk
Created April 25, 2025 21:58
Automated adjustment of Windows Update active hours with AutoHotkey.
#Requires AutoHotkey v2
key := "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings"
RegWrite(Mod(A_Hour + 23, 24), 'REG_DWORD', key, 'ActiveHoursStart')
RegWrite(Mod(A_Hour + 11, 24), 'REG_DWORD', key, 'ActiveHoursEnd')
RegWrite(2, 'REG_DWORD', key, 'SmartActiveHoursState')
@flipeador
flipeador / windows-capabilities-features.md
Created April 19, 2025 01:50
Install Windows capabilities and features with PowerShell.

Windows Capabilities & Features

Instructions

Open the [Windows Terminal][terminal] as Administrator and run the PowerShell script.

Install OCR Language Capabilities

Install all [Windows OCR][ocr] language capability packages to the system via Windows Update.

@flipeador
flipeador / configure-adguard-dns.ps1
Last active May 23, 2025 00:39
Configure AdGuard DNS (Encrypted) in Windows 11 with PowerShell.
# Configure the public AdGuard DNS server with DoH (Encrypted) programatically in W11.
# https://adguard-dns.io/en/public-dns.html#:~:text=Configure%20AdGuard%20DNS%20manually
# Define AdGuard DNS servers and their DoH template.
$servers4 = @(
# IPv4 default servers: block ads and trackers.
@{ address = "94.140.14.14"; template = "https://dns.adguard-dns.com/dns-query" },
@{ address = "94.140.15.15"; template = "https://dns.adguard-dns.com/dns-query" }
)
@flipeador
flipeador / install-windows.md
Last active April 18, 2025 14:23
Install, activate, debloat, and tweak Windows.

Install Windows

Download a [Windows][windows] ISO image.

Create a bootable USB drive with [Rufus][rufus].

Extract a specific Window edition.

# Replace `X` with the USB drive letter.
@flipeador
flipeador / win32-root-owner-parent.md
Last active February 10, 2025 00:41
Win32 | GetParent, GetWindow & GetAncestor.

@flipeador
flipeador / robocopy.ahk
Last active March 27, 2025 02:53
A basic GUI for backing up files and directories with ROBOCOPY in Windows.
;@Ahk2Exe-SetFileVersion 1.0.4.0
;@Ahk2Exe-SetProductName Robocopy backup tool
;@Ahk2Exe-SetCopyright https://gist.github.com/flipeador/29ac92f277f4c01e07659f17f8c0caa5
#Requires AutoHotkey v2
#SingleInstance Off
#NoTrayIcon
TITLE := 'Robocopy backup tool'
@flipeador
flipeador / uuid-v7.js
Last active January 8, 2025 23:52
JavaScript UUIDv7 (Time-Sortable Identifier) for NodeJS and the browser.
/**
* JavaScript UUIDv7 (Time-Sortable Identifier) for NodeJS and the browser.
* https://gist.github.com/flipeador/878e735b9f6432ff7006975627104693
*
*
* IMPORTANT:
* Quickly made with the help of ChatGPT, not suitable for use in production.
* This implementation may not be fully compliant with the UUIDv7 specification.
*/