Skip to content

Instantly share code, notes, and snippets.

View flipeador's full-sized avatar
🇦🇷

Matías Juarez flipeador

🇦🇷
View GitHub Profile
@flipeador
flipeador / otp2fa.js
Last active December 1, 2024 18:57
JavaScript one-time password implementation for NodeJS and the browser.
/**
* One-time password implementation for NodeJS and the browser.
* https://gist.github.com/flipeador/d70a8a08b9600116cc102b6f63e8519e
*
* Special thanks to ChatGPT for its incredible skills.
*/
const CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
/**
@flipeador
flipeador / qrcode.js
Last active December 7, 2024 19:10
JavaScript QR code generator for the browser.
/**
*
* QRCode for JavaScript by Sangmin David Shim.
* https://github.com/davidshimjs/qrcodejs
*
* Licensed under the MIT license.
* https://opensource.org/license/mit
*
* The word "QR Code" is registered trademark of DENSO WAVE INCORPORATED.
* https://www.qrcode.com/en/patent.html
@flipeador
flipeador / waterfx.html
Last active November 13, 2024 00:22
Simulation of water ripples on a <canvas> element in the browser.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html {
color-scheme: dark;
}
body {
@flipeador
flipeador / qrcode-generator.html
Last active November 21, 2024 09:02
QR code generator example.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>QR Code Generator</title>
<style>
html {
display: grid;
place-content: center;
color-scheme: light dark;
@flipeador
flipeador / extension-manifest-v2-availability.reg
Last active October 25, 2024 13:46
Extend the Manifest V2 phase-out in Windows.
Windows Registry Editor Version 5.00
; Microsoft Edge
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"ExtensionManifestV2Availability"=dword:00000002
; Chromium
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Chromium]
"ExtensionManifestV2Availability"=dword:00000002
@flipeador
flipeador / windows-sandbox.md
Last active August 25, 2024 16:09
The safest way to test any kind of viruses using Windows Sandbox.

Windows Sandbox

Windows Sandbox is a lightweight isolated virtual environment, designed to safely run and test untrusted applications without affecting the host system. It's a temporary, disposable instance that resets after closure, ensuring no permanent changes or data persist.

Everything required for this feature is included in Windows 10/11 Pro and Enterprise.
To enable Windows Sandbox, open PowerShell as Administrator and run the following command:

Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online
@flipeador
flipeador / twitch-easy-block.js
Last active December 18, 2024 01:11
Add a button to quickly block unwanted users from the Twitch category directory.
// ==UserScript==
// @name Twitch Easy Block
// @author Flipeador
// @version 1.0.8
// @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
// @grant GM_addStyle
@flipeador
flipeador / twitter-link-fixer.js
Last active August 24, 2024 13:34
Fix Twitter hyperlinks weird shrinking font size.
@flipeador
flipeador / twitch-rerun-hider.js
Last active December 27, 2024 16:36
Hide Twitch reruns from the category directory.
// ==UserScript==
// @name Twitch Rerun Hider
// @author Flipeador
// @version 1.0.4
// @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
Last active August 17, 2024 21:02
Clear GitHub Gist revisions history.
git checkout --orphan latest_branch
git add -A
git commit -am "commit"
git branch -D main
git branch -m main
git push -f origin main