Skip to content

Instantly share code, notes, and snippets.

View flipeador's full-sized avatar
🇦🇷

Matías Juarez flipeador

🇦🇷
View GitHub Profile

Password hashing

Scrypt & Argon2

import crypto from 'node:crypto';

const PASSWORD = '12345678';
const SALT = crypto.randomBytes(16); // unique for each password
@flipeador
flipeador / disable-drag-here-to-share.reg
Created August 29, 2025 00:02
Disable Windows 11 "Draw Tray" (Drag here to share).
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\FeatureManagement\Overrides\14\3895955085]
"EnabledState"=dword:00000001
"EnabledStateOptions"=dword:00000000
@flipeador
flipeador / clip.ahk
Last active August 28, 2025 05:49
CLI tool to read files and copy text to the Windows clipboard.
;@Ahk2Exe-ConsoleApp
#Requires AutoHotkey v2
#SingleInstance Off
Persistent(true)
FileEncoding('UTF-8')
SetWorkingDir(A_InitialWorkingDir)
parent := ProcessGetName(ProcessGetParent())
@flipeador
flipeador / twitch-chatter-count.js
Last active July 22, 2025 02:29
Show Twitch channel chatter count next to the channel viewer count.
// ==UserScript==
// @name Twitch Chatters Count
// @author Flipeador
// @version 1.0.5
// @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
// @require https://gist.githubusercontent.com/flipeador/577200d2ece50b4e0906d1ff589f1935/raw/graphql-tag.js
// @match *://www.twitch.tv/*
// @run-at document-idle
@flipeador
flipeador / bluesky-translate.js
Last active July 24, 2025 23:45
Translate Bluesky posts using the Translator API.
// ==UserScript==
// @name Bluesky Translate
// @author Flipeador
// @version 1.0.1
// @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 https://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.