Skip to content

Instantly share code, notes, and snippets.

View Torbikini's full-sized avatar
💬
Message on Discord.

Torbjörn Lindholm Torbikini

💬
Message on Discord.
View GitHub Profile
@Whats-A-MattR
Whats-A-MattR / readme.md
Last active January 19, 2026 22:49
Steam Authentication in Better-Auth

Steam Authetication in Better-Auth

Adapted by Better-Auth in a PR

Better-Auth currently does not have a Steam provider. If you've used Steam authentication before, you may understand why. It doesn't exactly comply with OAuth or OIDC standards. For example

  • Steam Authentiation does not respect state.
  • Steam does not require a Client ID or Client Secret, or even require an Application registration with redirect whitelisting.
  • Steam does not have an OIDC endpoint, you must use your own API Key to make requests to the ISteamUser/GetPlayerSummaries/v002/ api once recieving the callback from steam.
  • Steam does not return an email address, as we retrieve the user profile from a 'public' endpoint - as to say we only have access to what would otherwise be visible from the users steamcommunity/profile page.
@garryspins
garryspins / cl_melons-rounded-boxes.lua
Created June 28, 2023 19:59
Melon's Rounded Boxes
--[[
[Melon's Rounded Boxes]
Want a rounded box that has a material?
Want it to look nice?
Want also to be able to draw any form of rounded polygons?
WELL YOURE IN LUCK!
Remember to cache your polygons
and to credit me :) (https://github.com/garryspins)
@alexiscoutinho
alexiscoutinho / mcexport.py
Last active December 28, 2022 19:43 — forked from kice/mcexport.py
Convert Minecraft JSON model to Source engine model
import collections
import io
import json
import logging
import logging.handlers
import math
import os
import shutil
import struct
import subprocess
name: ${project.name}
version: ${project.version}
#Might need to change this depending on your package structure, but it's standard not to.
main: ${project.groupId}.${project.artifactId}
@Mo45
Mo45 / discord.msg.send.php
Last active May 31, 2025 13:34
PHP - Send message to Discord via Webhook
<?php
/**
* discord.msg.send.php v0.8
* Kirill Krasin &copy; 2025
* https://github.com/Mo45
*
* For revisions and comments vist: https://gist.github.com/Mo45/cb0813cb8a6ebcd6524f6a36d4f8862c
*
* Sends a message to Discord via Webhook with file support and rate limit handling
*
@bmwalters
bmwalters / multimc_install_optifine.py
Last active November 22, 2017 03:20
Automatically install OptiFine to a MultiMC instance
#!/usr/bin/env python3
import cfscrape # install with `pip install cfscrape`
import re
import os
import json
from packaging.version import Version
def build_multimc_patch_json(mc_version, optifine_version):
patch = {
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>