Skip to content

Instantly share code, notes, and snippets.

View Delivator's full-sized avatar
🏠
Working from home

David Delivator

🏠
Working from home
View GitHub Profile
@Delivator
Delivator / README.md
Last active September 22, 2024 19:22 — forked from Daan-Grashoff/google_search_maps_addon.js
Bring back the google maps button and make map image clickable when searching on google

Google Search Maps Fix

Bring back the "Maps" button and make some map tiles clickable again.

How to install

  1. Install a userscript addon like Violentmonkey
  2. Click HERE to install the user script
@Axel-Erfurt
Axel-Erfurt / celluloidTV.m3u
Last active September 15, 2024 19:39
Livestreams deutscher TV-Sender
#EXTM3U
#EXTINF:-1,ARD
https://mcdn.daserste.de/daserste/de/master.m3u8
#EXTINF:-1,ARD ONE
https://mcdn.one.ard.de/ardone/hls/master.m3u8
#EXTINF:-1,ARD Alpha
https://mcdn.br.de/br/fs/ard_alpha/hls/de/master.m3u8
#EXTINF:-1,ARD Tagesschau
https://tagesschau.akamaized.net/hls/live/2020115/tagesschau/tagesschau_1/master.m3u8
#EXTINF:-1,ZDF
@gasman
gasman / encode.py
Created October 25, 2020 12:23
Encoding a file as a Youtube video - https://www.youtube.com/watch?v=hyqLv2_zBdA
# Encode inputfile.tar.gz as a series of video frames
# Frames are written to frames/frameNNNN.png
from PIL import Image
with open('inputfile.tar.gz', 'rb') as f:
data = f.read()
WIDTH = 120
HEIGHT = 90
CHUNK_SIZE = int((WIDTH * HEIGHT) / 8)
@Delivator
Delivator / 4chan2skygallery.user.js
Last active September 8, 2020 20:37
User script which creates a SkyGallery album from a 4chan tread
// ==UserScript==
// @name 4chan to SkyGallery
// @namespace https://delivator.me
// @version 0.1
// @description User script which creates a SkyGallery album from a 4chan tread
// @author Delivator
// @match https://boards.4chan.org/*/thread/*
// @match https://boards.4channel.org/*/thread/*
// @grant none
// ==/UserScript==
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active August 3, 2024 10:36
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@Delivator
Delivator / nginx.conf
Created May 24, 2020 17:43
nginx skynet.local config
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#! /usr/bin/env bash
rm -rf logs
mkdir logs
all_log_files=""
for server in "germany" "helsinki" "us-east" "us-west";
do
scp -rpq user@${server}.siasky.net:skynet-webportal/docker/data/nginx/logs logs/${server}
for file in logs/${server}/*.gz; do gunzip -d ${file}; done
@Delivator
Delivator / Skynet (SiaSky.net).sxcu
Last active February 17, 2022 22:25
ShareX Skynet Uploader
{
"Version": "13.0.1",
"Name": "Skynet (SiaSky.net)",
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "https://siasky.net/skynet/skyfile",
"Body": "MultipartFormData",
"FileFormName": "file",
"URL": "https://siasky.net/$json:skylink$"
}
@Delivator
Delivator / transcode_all_mp4.ps1
Last active December 26, 2022 15:37
Re-encodes all .mp4 files in the same folder as the script to decrease their size
$location = Get-Location
$files = Get-ChildItem $location -Filter "*.mp4" | Sort-Object CreationTime
$quality = "36"
$counter = 0
$total = $files.Length
# Change Write-Progress Style
$PSStyle.Progress.MaxWidth = 240
Write-Host "Transcoding all mp4 files in this directory to mkv using NVENC AV1 with CQ $quality"