Skip to content

Instantly share code, notes, and snippets.

View Necroforger's full-sized avatar
💭
drifting on

Necroforger Necroforger

💭
drifting on
View GitHub Profile
@Necroforger
Necroforger / download_emojis.go
Last active March 19, 2019 09:59
discord download emojis from all guilds
/*
download_emojis.go
https://gist.github.com/Necroforger/5a1a93c8c57c300bb1f112f4c1d7f01b
downloads emojis for all of the guilds a user or bot is in to a directory.
download_emojis -token <bot_token> [options]
options:
-n int
maximum number of simultaneous downloads (default 5)
@Necroforger
Necroforger / create-video.go
Created February 25, 2019 23:31
script to help with re-creating old videos given a thumbnail and audio file. requires ffmpeg.
package main
import (
"database/sql"
"flag"
"fmt"
"image"
"image/color"
"image/draw"
"image/png"
@Necroforger
Necroforger / download.sh
Last active February 25, 2019 23:46
script to manage downloading youtube playlists. should have python and youtube-dl installed
# Download.sh helps keep track of youtube playlists by downloading them in groups
# Directory for downloaded playlist metadata. includes the video IDs of the videos in each playlist
playlists_folder="playlists_json"
# Directory to place downloaded videos, thumbnails, and video metadata JSON files
videos_folder="videos"
# URL prefix for playlists
prefix=""
@media screen and (min-width: 631px) {
.column {
flex: 1 1 auto;
}
article,
.detailed-status,
.status-reply,
.status {
resize: both;
@Necroforger
Necroforger / mastodon_necroforger.user.js
Last active December 2, 2018 07:45
Custom mastodon theming
// ==UserScript==
// @name mastodon_necroforger
// @version 1.4
// @description personalizing mastodon
// @author Necroforger
// @match *://mastodon.social/*
// @grant none
// ==/UserScript==
(async function () {
// ==UserScript==
// @name Youtube Tools Popout Helper
// @namespace http://tampermonkey.net/
// @version 0.2
// @description replaces links in the end screen to point towards another embed page
// @author necroforger
// @match https://www.youtube.com/embed/*?*ytt_popout=1*
// @grant none
// ==/UserScript==
@Necroforger
Necroforger / youtube_tools.user.js
Last active September 7, 2018 04:48
Adds some extra buttons to youtube videos
// ==UserScript==
// @name Youtube Tools
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Adds some extra buttons to youtube
// @author necroforger
// @match https://www.youtube.com/watch*
// @grant none
// ==/UserScript==
(function () {
// Number of pages to attempt to scroll
const pages = 1;
// sleep duration between scrolls in milliseconds.
// adjust to compensate for network speed.
const sleepDuration = 500;
/**
* Sleep for duration milliseconds
@Necroforger
Necroforger / alwaysontop.js
Last active August 31, 2018 22:55
Sets windows as always on top and borderless with hotkeys. Also allows you to drag them around
var robot = require("robot-js");
const DRAG_ENABLED = true // enable dragging
const DRAG_BUTTON = robot.BUTTON_LEFT; // Mouse button required to drag windows
const DRAG_REQUIRE_ALT = false; // Require alt to be pressed to drag a window
const DRAG_TELEPORT_MOUSE = true; // Teleport the mouse to the bottom of the video to prevent it from pausing when dragging
const DRAG_SENSITIVITY = 30; // Minimum distance mouse is required to move after clicking to drag window
const DRAG_REQUIRE_BORDERLESS = true; // Require that a window be borderless to allow dragging
const DRAG_REQUIRE_ALWAYS_ON_TOP = true; // require that a window be always on top to allow dragging
const DRAG_BOTTOM_DEADZONE = 0; // Leave a deadzone of 'n' pixels from the bottom of the window going upwards.
@Necroforger
Necroforger / xor-image.go
Created July 31, 2018 06:09
Xor the RGB pixels of two images together, because why not
package main
import (
"flag"
"image"
"image/draw"
_ "image/gif"
_ "image/jpeg"
"image/png"
"log"