Skip to content

Instantly share code, notes, and snippets.

View Lagmaker's full-sized avatar
🎯
harder~~

LagMaker Lagmaker

🎯
harder~~
View GitHub Profile
// In C, a void* can be implicitly cast to any other kind of pointer, while in C++ you need an explicit cast. In most
// cases, the explicit cast works for both C and C++, but if we consider the case where we have nested structs, then
// the way you refer to them differs between C and C++ (in C++, `parent_type::nested_type`, in C just `nested_type`).
// In addition, with the automatic cast in C, it is possible to use unnamed nested structs and still dynamically
// allocate arrays of that type - this would be desirable when the code is compiled from C++ as well.
// This VOID_CAST macro allows for automatic cast from void* in C++. In C, it does nothing, but for C++ it uses a
// simple template function to define a cast-to-anything operator.
// Use like this:
// struct {
// struct {
@ThioJoe
ThioJoe / !AddCompressToMenu -- How-To-Use.txt
Last active October 26, 2025 18:23
Add "Compress To" Option to Old Windows 11 Start Menu - Registry Tweak
How To Use:
1. Choose which version you want to use:
- "Full Menu" Version: The same as the original one in the new context menu, and has multiple sub-menu items
- Other Version: Doesn't have a sub-menu, it just directly opens the "Create Archive" menu. (The equivalent of clicking the "Additional Options" sub-item in the original)
2. Double click the "Add_" reg file of whichever version you choose
3. Restart Windows Explorer
- You can restart it by opening Task Manager with Ctrl+Shift+Esc, then search it for "Windows Explorer", right click that and hit "Restart"
@jamiephan
jamiephan / README.md
Last active October 27, 2025 11:42
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active November 5, 2025 08:44
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@ThioJoe
ThioJoe / cheat.bat
Last active September 11, 2025 20:31
"Cheat" Command Wrapper Script - Makes it easier to search specific terms with 'cheat' tool. Recommended to rename to "c.bat" for easy calling.
:: -----------------------------------------------------------------------------------------
:: Cheat Command Wrapper Script
:: -----------------------------------------------------------------------------------------
:: This batch script acts as a wrapper for 'cheat.exe', enhancing its functionality
:: by allowing more intuitive command-line interactions. Specifically, it:
::
:: 1. Directly accesses cheatsheets or tags with a single argument.
:: 2. Facilitates search within a cheatsheet using multiple arguments, treating them
:: as a single search query.
:: 3. Dynamically resolves the paths to the community and personal cheatsheets
@infirms
infirms / cs2-intel-fix.txt
Last active April 3, 2024 19:50
Fix for freezes that can occur on 12-14th Gen Intel Processors
EDIT Seems that valve fixed this problem???
I'm referring to the 4/3/24 cs2 update
Let's start
Parallel processing is used everywhere:
- Particles
- Animations
- Client-side Prediction
- Network processing
@Dziurwa14
Dziurwa14 / codes.md
Last active November 1, 2025 23:14
Discord error codes

Error Codes

All collected Discord error codes, categorized by type. See on Userdoccers.

Unknown Entity

Code Message
10001 Unknown Account
10002 Unknown Application
10003 Unknown Channel
10004 Unknown Guild
@hl2guide
hl2guide / Search_Everything_Cheatsheet.md
Last active October 22, 2025 07:40
Search Everything Cheatsheet

Search Everything Cheatsheet 📒

Search Everything is a fast, powerful, and effective search tool for Windows.

This cheatsheet acts as a quick start reference to get more out of Search Everything.

It compliments the official documentation.

Searching 🔍

@rexim
rexim / main.rs
Last active October 31, 2024 20:32
The Most Memory Safe Buffer Overflow in Rust!
// The Most Memory Safe Buffer Overflow in Rust!
//
// Consider all the code below under Public Domain
//
// How to build:
// $ rustc main.rs
//
// Wrong password:
// $ printf "hello\n" | ./main
//
@fomvasss
fomvasss / Шпаргалка по Markdown.md
Created October 26, 2018 22:39
Шпаргалка по Markdown