Skip to content

Instantly share code, notes, and snippets.

@JasSuri
JasSuri / moonlight_sunshine_gamestream_guide.md
Last active April 18, 2024 18:02
Moonlight and Sunshine gamestream guide for Windows 11

This guide was last updated: 20th December 2022, and the most optimum settings may differ as Sunshine and Moonlight are updated.

Overview

This guide is intended to help those migrating from streaming their games with Nvidia GameStream, to Sunshine. It will help you setup the Moonlight client and Sunshine gamesteam host to stream your PC games to your other devices. The aim is to optimise the settings to get similar streaming performance as Nvidia GameStream.

Prerequisites

  1. Download and install Moonlight client on your chosen device
  2. Download and install the nightly build of Sunshine gamestream host on the PC which you want to stream games from.
@cemerson
cemerson / download-cspan-videos-clips-to-mp4-with-youtube-dl.md
Last active November 30, 2023 17:15
Download CSPAN videos/clips to MP4 with YouTube-DL

How to download CSPAN clips to MP4 in Windows with YouTube-DL

  1. Install Youtube-DL so it's in your path/command line (https://github.com/ytdl-org)

  2. Get Two URLs ready to copy/paste. Both the URL of the CSPAN page w/the video and the M3U8 URL of the video. Get the M3U8 by viewing the page source and looking for ".m3u8". Examples (page): https://www.c-span.org/video/?c4990755/user-clip-johnson-covid-response (m3u8): https://m3u8-1.c-spanvideo.org/clip/clip.4954874.m3u8

  3. Run the line below in a Windows command prompt. Make sure to first replace the #M3U8_URL# and #CSPAN_VIDEO_PAGE_URL# with your URLs from step #2

@cemerson
cemerson / archive.org-scanned-book-downloader-bookmarklet.md
Last active June 30, 2024 22:34
Archive.org Scanned Book Downloader Bookmarklet

Archive.org Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video

Archive.org SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

@code-rgb
code-rgb / streamtape.py
Last active July 4, 2022 15:59
Get direct downoad link from "https://streamtape.com"
__all__ = ["get_st_async", "get_st"]
"""
# Async:
download_link = await get_st_async('https://streamtape.com/v/b89re9b8er94b8/Demo_Video_1.mp4')
# Sync:
download_link = get_st('https://streamtape.com/v/b89re9b8er94b8/Demo_Video_1.mp4')
"""
import asyncio
@danieltorrecillas
danieltorrecillas / resign-ios-app
Created November 23, 2020 16:39
Bash script to resign an iOS app
#!/usr/bin/env bash
set -e
# Resigns an iOS app with a given provisioning profile, distribution certificate, and, optionally, a new bundle identifier.
# This script expects to be invoked with at least three arguments.
# $1 is expected to be the path of the .ipa to be resigned
# $2 is expected to be the path of the .mobileprovision to resign $1 with
# $3 is expected to be the name of the distribution certificate in the Keychain to resign $1 with
# $4 is optional. If included, this will be the new bundle identifier of the resigned app. If not included, the original bundle identifier will be used.
@cemerson
cemerson / helpful-ffmpeg-commands.md
Last active July 30, 2020 21:10
Helpful FFMPEG commands

Helpful FFMPEG commands

Combine Image and MP3 into a new MP4

V1:

ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -c:a aac -strict experimental -b:a 192k -shortest output.mp4

V2 (alt?):

@comp500
comp500 / fabricserversidemods.md
Last active April 15, 2024 20:13
Useful Fabric server side mods
@lmvdz
lmvdz / BlockBenchModel.java
Last active October 3, 2022 22:06
How to convert blockbench modded model java into fabric model
package net.lmvdz.delirium.model;
import net.minecraft.client.model.Model;
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.Identifier;
import java.util.function.Function;
// ==UserScript==
// @name el ebin bitchute downloader (cemerson update)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description no homo
// @author jeff@i2p.rocks (cemerson 20190516 update)
// @match https://www.bitchute.com/video/*
// @grant none
// ==/UserScript==
@mmathys
mmathys / vimeo-vod.md
Last active December 13, 2023 19:19
Download Vimeo VOD (video on demand)

How to download vimeo VOD for offline usage

Variant 1

Use youtube-dl directly to download the video (thanks @meepybub!) Example:

youtube-dl -u <youremailaddress@example.com> "https://vimeo.com/ondemand/<video>"