Skip to content

Instantly share code, notes, and snippets.

View yunooooo's full-sized avatar

Yuno yunooooo

  • 18:29 (UTC -05:00)
View GitHub Profile
@avoidik
avoidik / README.md
Last active July 5, 2024 19:13
Run Windows 11 IoT ARM on Mac M1 or similar

How to run Windows on Mac

We're going to run Windows 11 IoT (ARM) on Mac M1 (ARM) using the native binary translation, thanks to up-to-date version of qemu which has native hardware support.

Prerequisites

Install qemu and required tools (coreutils - we need truncate/gtruncate, dd/gdd CLI tools, samba - to share files between host and guest VM).

$ brew install qemu coreutils samba
@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 June 2, 2024 18:54 — 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})$/

Download .ipa files removed from purchased tab.

Due to unknown reasons, apps you had previously purchased can no longer be downloaded from the App Store or iTunes. However, it turns out these applications can still be accessed. Originally, this tutorial was written to use iMazing's app downloading feature. This is because iMazing downloads apps using a different endpoint from what iTunes uses. However, I have also decided to write the tutorial to use ipatool-py, because it also uses the different endpoint when entering the Apple ID and Password into the command line.

This app must have been purchased on your Apple ID beforehand. You cannot download any app ever made. Apple only lets you download apps you had bought or downloaded in the past.

I reccomend using the ipatool-py method, because it is easier. However, if you are unable to use it, I have left the original iMazing method for you to follow.

Requirements for this tutorial:

  • App ID (Number such as 1053533457) of app to download
@Slyyxp
Slyyxp / reqbot.js
Last active June 10, 2024 08:53
Autofill request template.
// ==UserScript==
// @name Reqbot Userscript
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Autofill reqbot template on requests.php
// @author Slyyxp
// @match https://jpopsuki.eu/forums.php?action=new&forumid=28
// @icon https://www.google.com/s2/favicons?sz=64&domain=jpopsuki.eu
// @grant none
// ==/UserScript==
@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 June 19, 2024 08:17
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 June 25, 2024 23:11
Make Firefox fast again