Skip to content

Instantly share code, notes, and snippets.

View yunooooo's full-sized avatar

Yuno yunooooo

  • 08:30 (UTC -05:00)
View GitHub Profile
@DavidBuchanan314
DavidBuchanan314 / widevine_fixup.py
Last active April 24, 2024 06:24
Patch aarch64 widevine blobs from ChromeOS to work on non-ChromeOS linux, including platforms with 16K page size like Apple Silicon / Asahi Linux
"""
MIT License
Copyright (c) 2023 David Buchanan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@bunnykek
bunnykek / amusic_formats.user.js
Last active April 7, 2024 00:14 — forked from uhwot/amusic_formats.user.js
Apple Music Formats Userscript
// ==UserScript==
// @name Apple Music Formats
// @namespace io.github.uhwot.amusicformats
// @match https://music.apple.com/*
// @grant none
// @run-at document-start
// @version 1.0.2
// @author uh wot
// @description Shows formats available on Apple Music albums. Based on https://github.com/bunnykek/AppleMusic-Formats-Extension
// @icon https://music.apple.com/assets/favicon/favicon-180-f10a76334177ea08c0b3b35b0269fe16.png
@Wombattree
Wombattree / regexTutorial.md
Last active December 22, 2022 06:56
A regex tutorial

Regex Tutorial

Determining whether or not a string matches specific criteria is a very common problem in programming, particularly in web development where it's important to ensure that, for instance, user login details fit specific rules. This tutorial will cover a method for ensuring that an input string matches the format for an email.

Summary

This is a quick guide to how regular expressions (regex) work and how they can be used in Javascript. For this tutorial I'll be explaining the regex below:

/^([a-z0-9_.-]+)@([\da-z-]+)\.([a-z]{2,6})$/
@rlaphoenix
rlaphoenix / mitm_decrypt_enc_client_id.py
Last active October 24, 2023 17:48
Recover Client ID from most Widevine License Servers, CDM Implementations, and CDM APIs (if forcing privacy mode)
"""
Super trivial 'exploit' to Recover Client IDs from Challenges where it's Encrypted by Privacy Mode.
This can be done on 90% of third-party CDM Implementations, APIs, Proxies. It might work on some
license servers which they use their own certificate, but only if they forget to verify the signature
of the service certificate. So this wont work on any License Server that proxies to Google's Server.
The attack effectively boils down to the missing verification of Service Certificate signatures.
So just replace the public key of a service cert with one you have the private key for, and then
give it that. Now you can decrypt.
@rlaphoenix
rlaphoenix / _restream_cenc.md
Last active April 7, 2024 16:19
Ways to re-stream and decrypt MPEG-CENC live streams. (or just play on desktop)

Disclaimer

  1. All content keys were redacted, they should be 128-bit hex strings.
  2. These methods involve the use of ffmpeg and -cenc_decryption_key which is not part of stable releases as of July 2022. Use nightlies from gyan.dev or some other autobuild in the meantime. Hopefully it gets added in the next stable release.
  3. On my end none of these were particularly reliable. This may change in the future as FFmpeg evolves. The direct method of playing with ffplay is currently the most reliable out of the listed methods.

xTeVe (for Emby/Plex)

@wewnumam
wewnumam / bookmarks.md
Last active March 16, 2024 17:34
Daily use websites

Bookmarks

As someone who frequently relies on various websites to complete my daily tasks, I often find myself struggling to remember all the different addresses. That's why I created this bookmark as a helpful reminder for myself, and I hope it will be just as useful for others as well.

This bookmark not only includes links to the websites I use most often, but also includes a Chrome extension to maximize its functionality and improve my productivity.

If you find this bookmark helpful, feel free to share it with others who might benefit from it as well. Whether it's through social media, email, or simply word of mouth, sharing this bookmark with friends and colleagues can help us all stay organized and productive in our daily lives.


Table of contents

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active May 16, 2024 13:58
Make Firefox fast again
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active May 18, 2024 14:10
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m

\u001b is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.

export const getThumbnail = (id, size = 300) =>
`https://drive.google.com/thumbnail?id=${id}&sz=${size}`;
export const getIcon = (mimeType) =>
`https://drive-thirdparty.googleusercontent.com/256/type/${mimeType}`;
export const getFile = (id) => `https://drive.google.com/uc?id=${id}`;
const downloadFile = (id) =>
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active May 14, 2024 16:45
An unofficial list of discord app protocol routes

Discord app protocol routes

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
  • message requests: discord://-/message-requests
  • family centre: discord://-/family-center