Skip to content

Instantly share code, notes, and snippets.

@anadius
anadius / kemono_attachment_fix.user.js
Created March 30, 2023 17:49
Kemono Party attachment download fixer
// ==UserScript==
// @name Kemono Party attachment download fixer
// @author anadius
// @namespace anadius.hermietkreeft.site
// @match https://kemono.party/*
// @version 1.0.0
// @grant GM.xmlHttpRequest
// @run-at document-end
// ==/UserScript==
@xDShot
xDShot / discordencode.sh
Last active September 13, 2022 03:54 — forked from CallumDev/discordencode.sh
Bash script to encode videos with ffmpeg to under discord's 8MiB file limit
#!/bin/bash
# discordencode - encodes a video file to under 8MiB for Discord
usage () {
echo "Usage: [NOAUDIO=1] [VPRESET=x264-preset] discordencode input output.mp4"
}
if [ -z "$1" ]
then
usage
exit 1
fi
@TheSunCat
TheSunCat / DisblockOrigin.theme.css
Last active June 12, 2024 22:39
Hide all Nitro & Boost upsells in Discord!
/**
* @name Adblock for Discord
* @author TheSunCat and contributors
* @version 1.0.0
* @description Hide all Nitro & Boost upsells on Discord!
* @source https://gist.github.com/TheSunCat/58fedaa19d6154ef3e4b2b676c286906
*/
/* ------------------ */
/* Hide Nitro upsells */
@maziara
maziara / AutoConnectVPN.bat
Created March 20, 2021 20:03
A simple batch file to auto-check and auto-connect a VPN connection
@echo off
set vpnName="My VPN Connection Name"
set pingIp=192.168.1.1
set checkInterval=30
:whileLoop
for /f %%i in ('ping %pingIp% -l 1 -n 1 ^| find /c "Reply from %pingIp%"') do SET MATCHES=%%i
#!/bin/bash
# discordencode - encodes a video file to under 8MiB for Discord
usage () {
echo "Usage: [USEAUDIO=1] [VPRESET=x264-preset] discordencode input output.mp4"
}
if [ -z "$1" ]
then
usage
exit 1
fi
@Desani
Desani / ScanMedia.md
Last active May 27, 2024 00:39
3.6 - Corrected issues with determining terminal size in specific use cases. Added file encoding thanks to recommendation by LordKenmou. Fixed update script checker.

This script utilizes ffmpeg, the same tool Plex uses, to decode the video stream and captures the output for any errors during playback and sends the playback errors to a log file. So essentially it plays the video in the background faster than regular speed. It then checks the error output log file to see if there is anything inside. If ffmpeg was able to cleanly play the file, it counts as a passed file. If there is any error output, an error could be anything from a container issue, a missed frame issue, media corruption or more, it counts the file as failed. So if there would be an issue with playback and a video freezing, it would be caught by this method of checking for errors. Because of the nature of the error log, any errors that show up, even simple ones, will all count as a fail and the output is captured so you can view the error log. Some simple errors are easy to fix so I have included an auto-repair feature which attempts to re-encode the file which is able to correct some issues that would cau

@mgithens1
mgithens1 / autoport_autobind_transmission.sh
Last active March 15, 2024 08:03
Bash script for updating Transmission IP/port for Private Internet Access via OpenVPN.
#!/bin/sh
# FILL OUT YOUR INFO HERE
LOGIN=PIA LOGIN HERE
PASSWORD=PIA PASSWORD HERE
USER=TRANSMISSION LOGIN HERE
PASS=TRANSMISSION PASSWORD HERE
BIN="/usr/bin/transmission-remote"
LOGGING="/home/USERNAME/transmission_logging.txt"
@CannonballSkippy
CannonballSkippy / Video-and-Subtitle-merger-batch-for-mkvmerge.bat
Created May 15, 2017 13:27
This is a batch script that will merge subtitles with a video file, resulting in an *.mkv file with internal subtitles.
@echo off
echo ----------------------------------------------------------------------
echo VIDEO AND SUBTITLE MERGER
echo version 1.0.0 by Seyoum
echo ----------------------------------------------------------------------
:: Set file video extention
:VIDEOFILEEXTENTION
echo.
set /p videofileformat=Enter the video file type extension (e.g mp4):
if /I "%videofileformat%" EQU "webm" echo You have chosen %videofileformat% as your video file format&goto:SUBTITLEFILEEXTENTION