Skip to content

Instantly share code, notes, and snippets.

View angeloanan's full-sized avatar
πŸ€–
programmed to work, not to feel~

Angelo angeloanan

πŸ€–
programmed to work, not to feel~
View GitHub Profile
@Benricheson101
Benricheson101 / discord-bottom.js
Last active September 5, 2023 16:19
i need help
{
const mods = webpackChunkdiscord_app.push([
[Date.now()],
{},
e => Object.values(e.c),
]);
const provider = mods.find(
m => m?.exports?.Z?.getLanguages && Object.keys(m.exports.Z.Messages).length
).exports.Z._provider;
const strs = mods.find(m => m?.exports?.COMMAND_NICK_SUCCESS);
@Benricheson101
Benricheson101 / main.go
Last active February 26, 2022 09:32
Get statistics about your Discord bot. The go file supports large bot sharding
// Copyright (c) 2022 Benjamin Richeson
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
@HeathLoganCampbell
HeathLoganCampbell / !Extra info.md
Last active December 22, 2024 19:33
A weekend project to allow minecraft worlds to be saved in a mysql database, mysql worlds. This was done on top of Paper 1.17 on fa53a1a7f

SkyPaper

Uploading and download Minecraft worlds from mysql

The idea was to be able to upload worlds to a database so that we could have multiple servers upload and download them at will to enable load balancing for servers such as skyblock as the demands of scalable 1.17 servers grow while the performance falls version to version.

The important idea here was to see if it was possible to upload worlds to a database, which the answer is yes :D. but this even works better for skyblock servers as they are mostly air, which allowed us to do a small optimization. which is when a chunk is empty, we don't have it, as generating empty chunks is cheap as chips, but storing them has about 500B of overhead. so it ends up taking longer to fetch them from the database, then just generate them.

@Nielk1
Nielk1 / ExtendInput.DataTools.DualSense.TriggerEffectGenerator.cs
Last active March 17, 2025 20:10
Factories for all DualSense trigger effects
/*
* MIT License
*
* Copyright (c) 2021-2022 John "Nielk1" Klein
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@Eirenliel
Eirenliel / slimevr-setup.md
Last active July 19, 2022 22:52
SlimeVR Setup instructions
@jamiebuilds
jamiebuilds / tradeoffs-in-value-derived-types-in-typescript.md
Last active December 16, 2022 17:21
Value-derived types in TypeScript are super powerful, but you should be thoughtful in how/when you use them

Tradeoffs in value-derived types in TypeScript

Many of the more "advanced" typescript features can be used for creating "value-derived" types.

At its simplest form:

let vehicle = { name: "Van", wheels: 4 }
@vladfrangu
vladfrangu / chain_of_events.md
Last active August 31, 2020 11:04
What happened in Dirigeants, and where are we going next

This is a long story, with a lot of events that ended up creating the current state of Dirigeants: silent, dead, and unable to be maintained all due to AoDude (known as bdistin on GitHub) being power hungry, and not to mention selfish.

Around July 23rd, it all started when AoDude kicked Kyra for pinging him that his bot went offline. Thus, Kyra lost his Developer (and Admin) role, the former being given back once Kyra rejoined, however a reason behind the kick was never actually given. Around that day, we started drafting a formal letter, informing AoDude that due to his repeated violations of his own Code of Conduct, he will lose the ownership status on the GitHub organization, and unless he respects the terms mentioned in the letter, he'll lose the membership status as well.

Another one of Ao's actions was to ban Kyra over "breaking copyright", and filing an unofficial DMCA takedown request to Kyra's work-in-progress framework. The issue is publicly available here: https://github.com/sapphire-proj

@katef
katef / plot.awk
Last active November 20, 2024 23:27
#!/usr/bin/awk -f
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff
# My copy here is written in awk instead of C, has no compelling benefit.
# Public domain. @thingskatedid
# Run as awk -v x=xyz ... or env variables for stuff?
# Assumptions: the data is evenly spaced along the x-axis
# TODO: moving average
@Treeki
Treeki / TurnipPrices.cpp
Last active April 21, 2025 04:42
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@tonkku107
tonkku107 / tix.tax.color.schemes.md
Last active December 8, 2020 21:59
Color Schemes for tix.tax.

To enable any of these, enter one of the possible values in the name field.

Color Schemes

Default: reset, default, normal
Night: zzzzzzzzzz
Ubuntu: ubuntu
Nature: go play outside
Pink Everywhere: πŸ’–πŸ’–πŸ’–πŸ’–πŸ’–, πŸ’•πŸ’•πŸ’•πŸ’•πŸ’•, πŸ’—πŸ’—πŸ’—πŸ’—πŸ’—, πŸ’™πŸ’™πŸ’™πŸ’™πŸ’™, πŸ’šπŸ’šπŸ’šπŸ’šπŸ’š, πŸ’›πŸ’›πŸ’›πŸ’›πŸ’›, πŸ’œπŸ’œπŸ’œπŸ’œπŸ’œ, πŸ’πŸ’πŸ’πŸ’πŸ’, πŸ’žπŸ’žπŸ’žπŸ’žπŸ’ž, πŸ’ŸπŸ’ŸπŸ’ŸπŸ’ŸπŸ’Ÿ, 🧑🧑🧑🧑🧑, ❀️❀️❀️❀️❀️, πŸ–€πŸ–€πŸ–€πŸ–€πŸ–€, β™‘β™‘β™‘β™‘β™‘, β™₯β™₯β™₯β™₯β™₯, ❀❀❀❀❀, <3<3<3<3<3
Same Color (Blue): what is going on
Same Color (Red): what is happening