Skip to content

Instantly share code, notes, and snippets.

View LeaPhant's full-sized avatar
🧙‍♀️
killing projects faster than google

LeaPhant LeaPhant

🧙‍♀️
killing projects faster than google
View GitHub Profile
@Nyr
Nyr / imgur-direct-images.user.js
Last active May 9, 2024 20:48
Redirect imgur to the raw images skipping the crappy HTML pages
// ==UserScript==
// @name imgur direct images
// @description Redirect to the raw images skipping the crappy HTML pages.
// @include /^https?:\/\/imgur\.com\/[A-Za-z0-9]+$/
// @exclude *imgur.com/vidgif
// @exclude *imgur.com/jobs
// @exclude *imgur.com/about
// @exclude *imgur.com/apps
// @exclude *imgur.com/tos
// @exclude *imgur.com/privacy
@nicholastay
nicholastay / BTTVChatHistory4FFZ.user.js
Last active September 29, 2017 08:11
Chat history from BTTV's servers in FFZ.
// ==UserScript==
// @name BTTVChatHistory4FFZ
// @namespace http://nicholastay.github.io/
// @homepage https://gist.github.com/nicholastay/fad3889c30b963aa2f2a4a8529792212
// @version 0.1.1
// @description Chat history for FFZ, BTTV-style.
// @author Nicholas Tay (Nexerq / n2468txd) <[email protected]>
// @license Zlib/libpng
// @match *://twitch.tv/*
// @match *://www.twitch.tv/*
@Ruin0x11
Ruin0x11 / mpv-gif.lua
Last active March 26, 2024 01:01
Create animated GIFs using mpv
-- Create animated GIFs with mpv
-- Requires ffmpeg.
-- Adapted from http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
-- Usage: "g" to set start frame, "G" to set end frame, "Ctrl+g" to create.
local msg = require 'mp.msg'
-- Set this to the filters to pass into ffmpeg's -vf option.
-- filters="fps=24,scale=320:-1:flags=lanczos"
filters="fps=15,scale=540:-1:flags=lanczos"
@robere2
robere2 / hypixel-tag-calculator.js
Last active November 29, 2023 03:18
Calculates the currently displayed player tag on the Hypixel Network, given a response from the API
const ranks = {
"ADMIN": [
[
'c',
"[ADMIN]"
]
],
"MODERATOR": [
[
'2',
@SpaghettiBorgar
SpaghettiBorgar / mpv-clip.lua
Created April 5, 2020 18:42
mpv script to quickly create gifs, video clips, and sound clips
-- Create animated GIFs with mpv
-- Requires ffmpeg, gifski, exiftool, and vorbis-tools.
-- Based on github.com/Scheliux/mpv-gif-generator
-- Usage: "g" to set start frame, "G" to set end frame,
-- "Ctrl+g" to create gif
-- "Ctrl+v" to create video clip
-- "Ctrl+a" to create audio clip
-- Metadata about the filename and timestamps will be written in the comment tag
local msg = require 'mp.msg'