Skip to content

Instantly share code, notes, and snippets.

View fw-real's full-sized avatar

fw-real

View GitHub Profile
@ehsan18t
ehsan18t / processor-boost-mode.md
Last active January 19, 2025 06:01
Enable Processor Boost Mode Control in Advanced Power Settings

Enable Processor Boost Mode Control in Windows

Disable Turbo Boost to Reduce Power Consumption and Heat

Why Do We Need It?

The thing is if your laptop cpu is getting really hot and you are trying to undervolt it then chances are 99% that there are no method to do so. I have also tried to do undervolt my Ryzen 7 5800H but no luck. Because the bios doesn't allow that much control over the cpu. I don't know the specific reasons for the manufactures to restrict such a great thing. But with this you can disable the Turbo Boost. While this might sounds stupid but trust me you won't see a massive difference in performance after turned it off.

When You should Do It?

@Dziurwa14
Dziurwa14 / codes.md
Last active January 19, 2025 00:50
Discord error codes

Error Codes

All collected Discord error codes, categorized by type (first 2 digits).

Unknown API object

Code Message
10001 Unknown Account
10002 Unknown Application
10003 Unknown Channel
10004 Unknown Guild
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active January 12, 2025 12:07
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
// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
@tommelo
tommelo / admin-check.py
Last active September 14, 2023 10:27
import os
import sys
import ctypes
import _winreg
def is_running_as_admin():
'''
Checks if the script is running with administrative privileges.
Returns True if is running as admin, False otherwise.
'''