Skip to content

Instantly share code, notes, and snippets.

View ndri's full-sized avatar

Andri Soone ndri

View GitHub Profile
@jneuendorf-i4h
jneuendorf-i4h / download_vsix.py
Last active September 19, 2025 08:34
Download VSIX from VSCode Marketplace URL (e.g. for VSCodium if OpenVSX does not provide the extension)
"""Based on https://stackoverflow.com/a/38866913/23325241"""
import re
# Attempt to import requests and handle if it's missing
try:
import requests
requests_available = True
except ImportError:
requests_available = False
@ndarville
ndarville / webm.md
Last active March 11, 2025 17:21
4chan’s guide to converting GIF to WebM - https://boards.4chan.org/g/res/41212767

Grab ffmpeg from https://www.ffmpeg.org/download.html

It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.

The most trivial operation would be converting gifs:

ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
  • -crf values can go from 4 to 63. Lower values mean better quality.
  • -b:v is the maximum allowed bitrate. Higher means better quality.
@clsr
clsr / 1288.user.js
Last active December 27, 2015 19:19
Implementation of http://xkcd.com/1288/ as a userscript
// ==UserScript==
// @name xkcd 1288 substitutions
// @namespace http://github.com/mcef
// @description Substitutions that make reading the news more fun
//
// @include http://www.bbc.com/*
// @include http://www.cbc.ca/*
// @include http://www.theguardian.com/*
// @include http://www.telegraph.co.uk/*
// @include http://www.theonion.com/*