Skip to content

Instantly share code, notes, and snippets.

View pandamoon21's full-sized avatar
๐Ÿš€
:)

pandamoon21 pandamoon21

๐Ÿš€
:)
View GitHub Profile
@tyhoff
tyhoff / progress_bar_requests_upload.py
Last active April 15, 2025 18:09
Python requests HTTP PUT with tqdm progress bar
from tqdm import tqdm
from tqdm.utils import CallbackIOWrapper
file_path = os.path.abspath(__file__)
upload_url = https://some-bucket.s3.amazonaws.com
file_size = os.stat(file_path).st_size
with open(file_path, "rb") as f:
with tqdm(total=file_size, unit="B", unit_scale=True, unit_divisor=1024) as t:
wrapped_file = CallbackIOWrapper(t.update, f, "read")
@rlaphoenix
rlaphoenix / home_media_software_cheatsheet.md
Last active February 9, 2023 14:57
Home Media Software Cheatsheet
OS Software Type Supported Mediums
![Windows][win] ![Linux][nix] ![Mac][mac] MakeMKV GUI, CLI ![Blu-ray][br] ![DVD][dvd] *1 *4
![Windows][win] AnyDVD HD GUI ![Blu-ray][br] ![DVD][dvd] *5
![Windows][win] ![Linux][nix] *3 DVDFab *2 GUI ![Blu-ray][br] ![DVD][dvd] *5
![Windows][win] ![Linux][nix] *3 DVD Decrypter GUI, CLI*7 ![DVD][dvd]
![Linux][nix] K3b
@rlaphoenix
rlaphoenix / dvd-bible-by-phoenix.md
Last active August 30, 2025 04:42
The DVD-Video Bible, Written by @rlaphoenix
function UpscaleCheck(clip c, string "resolution") {
resolution = default(resolution, "720")
eval("""Interleave(c.myffinfo("source", color_lawngreen), c.AutoResize(""" + Chr(34) + resolution + Chr(34) + """).z_Spline36Resize(c.width, c.height).myffinfo("source -> """ + resolution +""" -> source", color_cyan))""")
}
@BrychanOdlum
BrychanOdlum / storefrontmappings.json
Last active March 8, 2025 11:18
Apple iTunes Storefront IDs
[
{
"name": "Algeria",
"code": "DZ",
"storefrontId": 143563
},
{
"name": "Angola",
"code": "AO",
"storefrontId": 143564
@pcroland
pcroland / mylwlinfo.avsi
Last active September 6, 2021 07:14
Modified lwlinfo for showing only the important parts with white and you can add a bonustext (group name for example) with predefined colors.
red = $FF7C7C
green = $B2FF7C
blue = $8F97FF
yellow = $FFE07C
orange = $FFB97C
magenta = $FF77FF
violet = $C787FF
cyan = $7DF9FF
white = $FFFFFF
azure = $86C8FF
@kowalcj0
kowalcj0 / .bashrc
Last active August 29, 2024 23:43
Extract all subtitles from a movie using ffprobe & ffmpeg
alias subs=subs
function subs() {
movie="${1}"
filename="${1%.*}"
mappings=`ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 "${movie}"`
OLDIFS=$IFS
IFS=,
( while read idx lang
do
import frida, sys
def on_message(message, data):
if message['type'] == 'send':
print("[*] {0}".format(message['payload']))
else:
print(message)
jscode = """
Java.perform(function () {
@ForgottenUmbrella
ForgottenUmbrella / publish_python.md
Last active February 17, 2025 23:05
How to publish Python apps for human beings

How to publish Python apps for human beings

So, you've created a Python app (be it a graphical user interface with Qt or the like, or a simple command line interface). Great! But how are others going to use it? Python applications often have dependencies (e.g. from third-party modules), and they also need a Python interpreter to run them. For a developer, installing all the necessary bits and bobs to make things work is okay, but that's unacceptable for a normal user - they just want to download the thing and run it.

Below are simple instructions to publish your app on the three main operating systems: Windows, macOS and Linux.

@felipemeamaral
felipemeamaral / remux
Created July 11, 2017 20:16 — forked from xf1/remux
Remuxing with eac3to
Remuxing
Why Remux Blu-rays?
-You use MPC-HC (or similar DShow players) and standard filters for playback. You can also use better quality renderers like Haali, EVR and madVR.
-You get the ease of playback of a re-encode without the quality loss. A double click off the .mkv will start the movie - no annoying warnings, loading screens, previews and setup menus.
-You don't have to deal with horribly bloated, unstable and expensive PowerDVD or Arcsoft playback software.
-You don't have to mess with ISO creation, correct BD folder structure, UDF and SPTD drivers, and image mounting every time you want to watch a movie.
-You never have to worry about the region code setting of a disc.
-You never have to worry about HDCP or PAP content protection.
-You never have to worry about your software player downsampling your audio - get full bit-depth and frequency resolution, 24bit/96kHz or higher, not 16/48.