Skip to content

Instantly share code, notes, and snippets.

@bijij
bijij / viewimage.user.js
Last active August 26, 2025 17:15
Userscript version of the View Image chrome extension
// ==UserScript==
// @name View Image
// @namespace https://github.com/bijij/ViewImage
// @version 4.1.1
// @description This userscript re-implements the "View Image" and "Search by image" buttons into google images.
// @author Joshua B
// @run-at document-end
// @include http*://*.google.tld/search*tbm=isch*
// @include http*://*.google.tld/imgres*
// @updateURL https://gist.githubusercontent.com/bijij/58cc8cfc859331e4cf80210528a7b255/raw/viewimage.user.js
@theawesomecoder61
theawesomecoder61 / base64fonttobin.py
Last active April 6, 2022 02:43
Converts a text file with Base64 encoded font (like in CSS) to a .bin file to be converted to a font
#!/usr/bin/python
# This script converts a font encoded in Base64 in a text file to a .bin font file.
# You can convert the .bin file using http://onlinefontconverter.com/, which I recommend though I am not affiliated.
# It'd be useful to know what the type (TTF, OTF, WOFF, SVG, etc.) the original font was for the online converter.
# tested with Python 2.7
from base64 import decodestring
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active November 1, 2025 05:06 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@neremin
neremin / BAT_CMD_runAsAdmin_fix.bat
Last active January 28, 2021 16:32
Template for windows cmd shell scripts (BAT, CMD) which need to auto-request user run as Administrator. Plus script for fixing "Run as Administrator" on batch files.
@ECHO off
net session >nul 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS
:ELEVATE
ECHO Elevated privileges are temporarily required to run script
cd /d %~dp0
mshta "javascript: var shell = new ActiveXObject('Shell.Application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1); close();"
@spiralx
spiralx / User script templates for Tampermonkey
Last active September 23, 2024 18:22
Tampermonkey user script templates
For
* ES5
* ES6
* CoffeeScript
@joepie91
joepie91 / vpn.md
Last active October 31, 2025 21:09
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@fredley
fredley / upload.user.js
Created March 4, 2015 18:56
Drag+Drop image uploader for SE chat
// ==UserScript==
// @name Chat Image Upload
// @description Drag and Drop upload images
// @author fredley
// @version 1.0.0
// @include *://chat.meta.stackoverflow.com/rooms/*
// @include *://chat.meta.stackexchange.com/rooms/*
// @include *://chat.stackexchange.com/rooms/*
// @include *://chat.stackoverflow.com/rooms/*
// @include *://chat.askubuntu.com/rooms/*
@westonruter
westonruter / README.md
Last active June 30, 2023 15:29
User script to add a “Group by User”, “Sort by Date”, and “Load until…” buttons to Twitter.

This user script adds “Group by User”, “Sort by Date”, and “Load until...” buttons to the Twitter web app. I'm so tired of Twitter (and Facebook and Google+) not remembering the read state for my posts. My solution in the past was GTweet which allowed me to import my tweets into Google Reader, and Google Reader would happily keep track of all of the tweets I hadn't read yet. I also wrote a user script that added buttons to Reader which allowed me to group/sort the tweets by user to allow me to much more quickly read through them; inpiration for this came from Steve Souders:

Wrote bookmarklet to sort Twitter stream by account. Love it for my early morning massive catchup. #MyWebMyWay

— souders (@souders) November 21, 2012

Well, since Googl