Skip to content

Instantly share code, notes, and snippets.

View yuinachan's full-sized avatar

yuinachan

  • Canada
  • 04:18 (UTC -04:00)
View GitHub Profile
@yeralexey
yeralexey / pyrogram_forward_to_topic.py
Last active August 21, 2024 22:16
Forward message to certain topic in group, with pyrogram, using raw.
from pyrogram import Client
from pyrogram.types import Message
from pyrogram.raw import functions, types
async def forward_to_topic(
source_channel_id: int, destination_channel_id: int,
forwarded_message_id: int, topic_init_message_id: int, client: Client) -> Message:
"""
Forward a message from one channel to another channel and associate it with a specified topic using raw functions,
@Ale32bit
Ale32bit / begone-gg-sans.css
Last active June 1, 2024 11:32
Removes gg sans from discord
:root {
--font-primary: Whitney, "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
--font-display: Whitney, "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@rlaphoenix
rlaphoenix / mitm_decrypt_enc_client_id.py
Last active July 27, 2024 10:17
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.
@ZipFile
ZipFile / README.md
Last active April 4, 2025 01:29
Pixiv OAuth Flow

Retrieving Auth Token

  1. Run the command:

    python pixiv_auth.py login

    This will open the browser with Pixiv login page.

@Davoleo
Davoleo / spotify.md
Last active April 4, 2025 04:38
An in-depth guide on modding Spotify with updated methods to remove ads, bypass country restrictions and theme the application

Spotify Modding & Guides

This is a collections of script, patches and procedures to mod Mobile and Desktop Spotify Applications.

If you know about something that isn't listed here and you would like it to be feel free to tell me about it in the comments or send an e-mail to [email protected]

Table of Contents

@imba-tjd
imba-tjd / .Cloud.md
Last active April 20, 2025 10:09
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字处理)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本 & 按需付费 & 弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

其他人的集合

@nerrixde
nerrixde / vpn.md
Last active April 30, 2024 19:23 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@mraaroncruz
mraaroncruz / steps.md
Last active April 4, 2025 02:45
Get the Telegram channel ID

To get the channel id

  1. Create your bot with botfather
  2. Make you bot an admin of your channel

Simplest way (via @anhtuank7c)

Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path

https://web.telegram.org/k/#-9999999999999

@opus-x
opus-x / Spotify_Eliminate_Advertisements
Last active April 8, 2025 18:44
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - ABANDONED FOR NOW #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
@tpope
tpope / .netrc
Created December 10, 2012 00:46
Sample netrc
machine api.heroku.com
login [email protected]
password 01230123012301230123012301230123
machine api.github.com password something login somebody
machine ftp.server login abc password def account ghi macdef somemacro
cd somehwhere
continues until end of paragraph