Skip to content

Instantly share code, notes, and snippets.

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

LagMaker Lagmaker

🎯
harder~~
View GitHub Profile
@nosqd
nosqd / ls.c
Created February 1, 2026 21:52
simple ls implmentation in C
#include <dirent.h>
#include <grp.h>
#include <linux/limits.h>
#include <pwd.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
@nosqd
nosqd / main.jai
Created January 8, 2026 20:11
Jai + X11 + wgpu-native Triangle
#import "Window_Creation";
#import "Input";
#import "Basic";
#import "Math";
x11 :: #import "X11";
wgpu :: #import "wgpu";
WINDOW_WIDTH :: 1366;
WINDOW_HEIGHT :: 768;
win: Window_Type;
@rexim
rexim / dup.c
Last active April 24, 2026 21:24
Xor Party Tricks
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int xs[] = {7,62,2,46,73,43,26,82,5,95,57,56,44,21,40,79,13,6,9,8,72,59,65,81,60,78,13,85,87,58,48,25,32,47,67,4,31,19,33,1,92,14,53,89,84,54,29,10,17,3,77,70,45,97,34,23,86,55,15,64,68,83,76,41,18,39,94,22,74,11,69,49,12,35,20,90,100,98,36,63,91,38,66,93,50,96,61,71,75,37,52,88,30,28,99,27,42,51,80,24,16};
int main()
{
int x = 0;
for (int i = 1; i <= 100; ++i) {

How to HDR stickers on Discord

Someone found out HDR emojis and stickers work on Slack: https://sharpletters.net/2025/04/16/hdr-emoji/

So I've decided to experiment a bit and see if it works on Discord.

It works! But only if you find a way to pass-through the image as-is through the CDN.

One of ways to do this is making it an APNG sticker.

// 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 November 30, 2025 23:36
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 April 12, 2026 14:40
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 May 10, 2026 02:47
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

@ThioJoe
ThioJoe / cheat.bat
Last active May 10, 2026 02:34
"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