Skip to content

Instantly share code, notes, and snippets.

@Aldaviva
Aldaviva / oath-totp-google-authenticator-export-keepass-import.md
Last active January 7, 2026 14:42
Export one-time passwords from Google Authenticator and import them into KeePass

Import TOTP from Google Authenticator into Keepass

  1. Export a QR code from Google Authenticator
    1. Open the Google Authenticator Android app
    2. Tap ☰ › Transfer accounts › Export accounts
    3. Laboriously deselect all accounts except the one you want to export
    4. Tap Next
  2. Decode the otpauth-migration URI from the QR code
    1. Take a screenshot of the QR code on the screen by holding Power+Volume Down
  3. Open the screenshot in Google Photos or another app that can decode QR codes
// ==UserScript==
// @name Viewpan
// @version 1.4
// @description Enable panning and zooming of any webpage for ergonomic frontend dev
// @match *://*/*
// @grant none
// ==/UserScript==
// ==Keybindings==
// Toggle pan/zoom mode: Shift + Space
site:*/sign-in
site:*/account/login
site:*/forum/ucp.php?mode=login
inurl:memberlist.php?mode=viewprofile
intitle:"EdgeOS" intext:"Please login"
inurl:user_login.php
intitle:"Web Management Login"
site:*/users/login_form
site:*/access/unauthenticated
site:account.*.*/login
@ircfspace
ircfspace / worker.js
Created September 18, 2025 08:05
Simple GitHub Raw Proxy Worker
export default {
async fetch(request) {
const url = new URL(request.url);
const path = url.pathname.replace(/^\/+/, "");
const parts = path.split("/");
if (parts.length < 4) {
return new Response("Usage: /owner/repo/branch/path/to/file.ext", { status: 400 });
}
const [owner, repo, branch, ...filePathParts] = parts;
const filePath = filePathParts.join("/");
@ifiokjr
ifiokjr / ADB Instructions.md
Last active January 7, 2026 14:38
Android Platform Tools
@fbarretto
fbarretto / streamdiffusion-mac.md
Last active January 7, 2026 14:36
StreamDiffusion on a Mac

This is a gist on how to get StreamDiffusion running on a Mac (mps)

  1. Clone the repo

git clone https://github.com/cumulo-autumn/StreamDiffusion.git
  1. Setup the environment

cd StreamDiffusion
@buzamahmooza
buzamahmooza / Faris Handy Webdev JavaScript functions.user.js
Created January 15, 2018 13:17
A library for my commonly used JavaScript functions with user scripts.
// ==UserScript==
// @name Faris Handy Webdev JavaScript functions
// @namespace http://tampermonkey.net/
// @version 0.1
// @description A bunch of useful JavaScript functions
// @description This is not a regular script for you to run! Only use this via the @require keyword.
// @author Faris Hijazi
// @grant unsafeWindow
// ==/UserScript==
@dannberg
dannberg / obsidian-daily-note-template.txt
Last active January 7, 2026 14:29
Dann Berg's Daily Note Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. Read the full tour: https://dannb.org/blog/2022/obsidian-daily-note-template/
---
created: <% tp.file.creation_date() %>
---
tags:: [[+Daily Notes]]
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>
<< [[Timestamps/<% tp.date.now("YYYY", -1) %>/<% tp.date.now("MM-MMMM", -1) %>/<% tp.date.now("YYYY-MM-DD-dddd", -1) %>|Yesterday]] | [[Timestamps/<% tp.date.now("YYYY", 1) %>/<% tp.date.now("MM-MMMM", 1) %>/<% tp.date.now("YYYY-MM-DD-dddd", 1) %>|Tomorrow]] >>
---
@buzamahmooza
buzamahmooza / Add video keyboard shortcuts.user.js
Last active January 7, 2026 14:28
Adds keyboard shortcuts to HTML5 videos.
// ==UserScript==
// @name Video keyboard shortcuts
// @namespace https://github.com/buzamahmooza
// @version 0.5
// @description Adds keyboard shortcuts to HTML5 videos.
// Left Click: Toggle Pause/Play
// F or dblClk: Toggle Fullscreen
// SpaceBar: Toggle Pause/Play
// Left/Right: Navigate back/forward
// -,[ / =,]: - / + Playback speed
@R0GGER
R0GGER / README.md
Last active January 7, 2026 14:27
Rustdesk - install oneliner

RustDesk Installation Script

This script provides an easy way to install and uninstall RustDesk on Debian-based Linux systems (Ubuntu, Linux Mint, etc.).

Features

  • Automatic detection of the latest RustDesk version
  • Architecture detection (x86_64, aarch64, etc.)
  • Handles all dependencies
  • Supports both install and uninstall