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-easy-block.js
Last active August 15, 2024 18:50
Add a button to quickly block unwanted users from the Twitch category directory.
// ==UserScript==
// @name Twitch Easy Block
// @author Flipeador
// @version 1.0.0
// @homepageURL https://gist.github.com/flipeador/e1a241560f01d47df9f65f33fcc2af11
// @downloadURL https://gist.githubusercontent.com/flipeador/e1a241560f01d47df9f65f33fcc2af11/raw/twitch-easy-block.js
// @match *://www.twitch.tv/*
// @grant GM_getValue
// @grant GM_setValue
// @run-at document-idle
@flipeador
flipeador / twitter-link-fixer.js
Last active August 13, 2024 14:39
Fix Twitter hyperlinks weird shrinking font size.
@flipeador
flipeador / twitch-rerun-hider.js
Last active August 15, 2024 14:42
Hide Twitch reruns from the category directory.
// ==UserScript==
// @name Twitch Rerun Hider
// @author Flipeador
// @version 1.0.1
// @homepageURL https://gist.github.com/flipeador/3ead757e62a1a0669d102dfbfd90bc40
// @downloadURL https://gist.githubusercontent.com/flipeador/3ead757e62a1a0669d102dfbfd90bc40/raw/twitch-rerun-hider.js
// @match *://www.twitch.tv/*
// @grant none
// @run-at document-idle
// ==/UserScript==
@flipeador
flipeador / clear-github-gist-revisions-history.bat
Created August 6, 2024 18:04
Clear GitHub Gist revisions history.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Clear GitHub Gist revisions history.
::
:: 1) Navigate to the GitHub Gist page.
:: 2) Click the 'Embed ↓' button, select 'Clone via HTTPS', and copy the URL.
:: 3) Run 'git clone <URL>' in the command prompt to clone the Gist repository.
:: 4) Run the following Git commands in the command prompt to clear the revisions history.
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@flipeador
flipeador / clear-windows-thumbnail-icon-cache.bat
Created August 6, 2024 17:54
Clear the Windows thumbnail and icon cache for all users.
@echo off
setlocal enabledelayedexpansion
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Clear the Windows thumbnail and icon cache for all users.
::
:: Solve the problem of blank icons in the desktop and the file explorer.
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@flipeador
flipeador / envvars.ahk
Last active August 7, 2024 02:38
Windows environment variables editor.
/************************************************************************
*
* Windows environment variables editor.
*
* Run as administrator to edit the system environment variables.
*
* Use the side mouse buttons to quickly move ↑↓ the env var values.
*
* 1) Install AutoHotkey v2.
* https://www.autohotkey.com/download/ahk-v2.exe
@flipeador
flipeador / shellex.ahk
Created August 2, 2024 19:27
Enumerate and invoke commands from the shellex context menu.
;@Ahk2Exe-ConsoleApp
/************************************************************************
* Enumerate and invoke commands from the shellex context menu.
*
* 1) Install AutoHotkey v2.
* https://www.autohotkey.com/download/ahk-v2.exe
*
* 2) Compile this script: Right click → Show more options → Compile script.
* 3) Run 'shellex.exe' from the command prompt (cmd.exe) to see the help.
@flipeador
flipeador / image-sprites.md
Last active August 6, 2024 15:11
Create CSS/SVG image sprites.

Image Sprites

An image sprite is a collection of images put into a single image.

Helps reduce the number of HTTP requests, memory and bandwidth usage.

They are often used to significantly improve performance in emoji selectors.

Instructions

@flipeador
flipeador / asynchrony-concurrency-simultaneity.md
Created June 21, 2024 03:25
Asynchrony, concurrency and simultaneity.

Asynchrony - Concurrency - Simultaneity

🔄 Synchrony

Synchrony implies that the execution of multiple tasks occurs sequentially one after the other. Tasks are like steps that are executed in order, each operation blocks the others until completion.

Task #1   ├───────────┤............................
Task #2   .............├────────────┤..............
@flipeador
flipeador / ffmpeg-convert-image.bat
Last active August 6, 2024 17:25
A simple BATCH script to convert images using FFmpeg.
@echo off
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: A simple BATCH script to convert images using FFmpeg.
:: Supports WebP, AVIF, and JPEG XL (jxl).
::
:: Download FFmpeg and add '/bin' to 'PATH' env var.
:: https://www.ffmpeg.org
:: https://github.com/BtbN/FFmpeg-Builds/releases