Skip to content

Instantly share code, notes, and snippets.

@Cynosphere
Cynosphere / moe.yushi.authlib-injector.json
Created June 24, 2022 16:07
authlib-injector PolyMC Component
{
"formatVersion": 1,
"name": "authlib-injector",
"uid": "moe.yushi.authlib-injector",
"version": "1.1.45",
"+agents": [
{
"name": "moe.yushi:authlib-injector:1.1.45",
"MMC-absoluteUrl": "https://authlib-injector.yushi.moe/artifact/45/authlib-injector-1.1.45.jar",
"argument": "<auth url>"
@Cynosphere
Cynosphere / sourcequery.js
Last active October 29, 2024 21:00
sourcequery nodejs
const dgram = require("dgram");
const ip = process.argv[2];
const port = process.argv[3] || 27015;
if (!ip) {
console.log("giv ip");
process.exit(1);
}
@Cynosphere
Cynosphere / gameslist.json
Last active January 15, 2021 17:04
Discord Verified Games List [01/15/2021] (https://discordapp.com/api/v8/applications/detectable)
[
{
"id": "259392830932254721",
"name": "SpeedRunners",
"icon": "cb48279ea90e86fb4f71c709d3236395",
"splash": "94e91cac9509fee1eb80a69b9503878a",
"overlay": false,
"overlayWarn": false,
"overlayCompatibilityHook": false,
"hook": true,
@Cynosphere
Cynosphere / pac_player_size_fix.lua
Last active July 2, 2020 19:44
PAC3 Player Hull Fix Workaround
local hooks = _G.hooks or hook.GetTable()
hook.Add("pac_OnPartCreated", "PlayerSizeFix", function(part)
if part.owner_id ~= LocalPlayer():UniqueID() then return end
timer.Simple(0.1, function()
if part:GetRootPart():GetOwnerName() ~= "self" then return end
if (part.ClassName == "entity" or part.ClassName == "entity2") then
LocalPlayer().pac_player_size = part.Size
hooks.NotifyShouldTransmit.pac_player_size(LocalPlayer(), true)
@Cynosphere
Cynosphere / emojis.json
Created January 12, 2020 19:32
Discord naming scheme based emojis.json
[{"char":"😀","codes":"1F600","name":"grinning"},{"char":"😃","codes":"1F603","name":"smiley"},{"char":"😄","codes":"1F604","name":"smile"},{"char":"😁","codes":"1F601","name":"grin"},{"char":"😆","codes":"1F606","name":"laughing"},{"char":"😆","codes":"1F606","name":"satisfied"},{"char":"😅","codes":"1F605","name":"sweat_smile"},{"char":"😂","codes":"1F602","name":"joy"},{"char":"🤣","codes":"1F923","name":"rofl"},{"char":"🤣","codes":"1F923","name":"rolling_on_the_floor_laughing"},{"char":"☺️","codes":"263A FE0F","name":"relaxed"},{"char":"😊","codes":"1F60A","name":"blush"},{"char":"😇","codes":"1F607","name":"innocent"},{"char":"🙂","codes":"1F642","name":"slight_smile"},{"char":"🙂","codes":"1F642","name":"slightly_smiling_face"},{"char":"🙃","codes":"1F643","name":"upside_down"},{"char":"🙃","codes":"1F643","name":"upside_down_face"},{"char":"😉","codes":"1F609","name":"wink"},{"char":"😌","codes":"1F60C","name":"relieved"},{"char":"😍","codes":"1F60D","name":"heart_eyes"},{"char":"🥰","codes":"1F970","name":"smiling_face_
@Cynosphere
Cynosphere / mute.txt
Created January 6, 2020 21:46
Twitter Muted Words (de-duplicated list)
RankedOrganicTweet
ActivityTweet
suggest_ranked_organic_tweet
suggest_sc_tweet
suggest_ranked_timeline_tweet
suggest_grouped_tweet_hashtag
suggest_pyle_tweet
suggest_recycled_tweet_inline
suggest_activity_tweet
suggest_recycled_tweet
@Cynosphere
Cynosphere / ycbcr.lua
Created November 10, 2019 23:47
GLua/Lua RGB <--> YCbCr Color Space Conversions
local function RGBToYCbCr(r, g, b)
local Y = 0.299 * r + 0.587 * g + 0.114 * b
local Cb = -0.169 * r - 0.331 * g + 0.500 * b + 128
local Cr = 0.500 * r - 0.419 * g - 0.081 * b + 128
return Y, Cb, Cr
end
local function YCbCrToRGB(Y, Cb, Cr)
local r = 1 * Y + 0 * (Cb - 128) + 1.4 * (Cr - 128)
@Cynosphere
Cynosphere / endpoints.json
Created October 6, 2019 22:09
Discord Endpoints (strings only | Oct 6, 2019)
{
"ACTIVITIES": "/activities",
"APPLICATIONS_DETECTABLE": "/applications/detectable",
"APPLICATIONS_PUBLIC": "/applications/public",
"APPLICATIONS_TRENDING": "/applications/trending/global",
"APPLICATION_BRANCHES": "/branches",
"APPLICATION_NEWS": "/application-news",
"AUTHORIZE_IP": "/auth/authorize-ip",
"AUTH_CONSENT_REQUIRED": "/auth/consent-required",
"BILLING_APPLY_APPLE_RECEIPT": "/billing/apple/apply-receipt",
@Cynosphere
Cynosphere / gameslist.json
Created March 6, 2019 01:48
Discord Verified Games List
This file has been truncated, but you can view the full file.
[
{
"id": "259392830932254721",
"name": "SpeedRunners",
"icon": "cb48279ea90e86fb4f71c709d3236395",
"splash": "94e91cac9509fee1eb80a69b9503878a",
"overlay": false,
"overlayWarn": false,
"overlayCompatibilityHook": false,
"aliases": [],
@Cynosphere
Cynosphere / endpoints.json
Created June 25, 2018 04:17
All Discord Endpoints [Client Stored] (06-24-2018)
{
"USER_ACTIVITY_STATISTICS": "/users/@me/activities/statistics/applications",
"ACTIVITIES": "/activities",
"LOBBIES": "/lobbies",
"LOBBY_SEARCH": "/lobbies/search",
"USER_GAMES_NOTIFICATIONS": "/users/@me/settings/game-notifications",
"USER_GAMES_NOTIFICATIONS_OVERRIDES": "/users/@me/settings/game-notifications/overrides",
"UNVERIFIED_APPLICATIONS": "/unverified-applications",
"UNVERIFIED_APPLICATIONS_ICONS": "/unverified-applications/icons",
"GAME_NEWS": "/game-news",