Skip to content

Instantly share code, notes, and snippets.

View Buggem's full-sized avatar
πŸ’­
​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

Max Parry Buggem

πŸ’­
​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
View GitHub Profile
@rtldg
rtldg / Steam Datagram Relay slash Steam Networking FAQ.md
Last active December 2, 2025 18:34
Steam Datagram Relay / Steam Networking FAQ

What is Steam Datagram Relay / Steam Networking?

Resources:

Steam Networking is a bundle of APIs that do a lot of things and most notably support Steam Datagram Relay, which is provided by Valve to proxy connections to your server/SRCDS, to protect your server/SRCDS from DDOS, and provide P2P support.

Previously, if you could not port-forward your SRCDS server's ports, it would only work as a LAN server and other players wouldn't be able to join.

@sdesalas
sdesalas / udp.status.cjs
Created September 11, 2024 13:26
Get bedrock server status
/* eslint-disable require-jsdoc */
// @see https://github.com/py-mine/mcstatus/blob/master/mcstatus/bedrock_status.py
const udp = require('dgram');
const port = 48548; // 19000;
const host = 'localhost';
const MAX_WAIT_MS = 2000;
const OFFLINE_MESSAGE_DATA_ID = '00ffff00fefefefefdfdfdfd12345678';
const UNCONNECTED_PING = // see https://wiki.vg/Raknet_Protocol#Unconnected_Ping
'01' + '0000000000000000' + OFFLINE_MESSAGE_DATA_ID + '0000000000000000'; // fmt: skip;
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active July 19, 2026 02:14
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

@saxbophone
saxbophone / client.c
Created February 4, 2017 16:12
UDP C socket programming example, from the Linux man pages (man getaddrinfo)
/* client.c */
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#define BUF_SIZE 500
@m1nuz
m1nuz / simple-x11-window.c
Created March 12, 2015 09:37
Simple X11 window
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
bool quited = false;
void on_delete(Display * display, Window window)
{
XDestroyWindow(display, window);