Skip to content

Instantly share code, notes, and snippets.

@Stuyk
Stuyk / index.js
Created March 15, 2024 03:33
Ethereum Address & Balance Checker
// This is incredibly stupid and you will never hit an address with a balance.
// Anyway, enjoy.
const bip39 = require("bip39");
const { hdkey } = require("@ethereumjs/wallet");
const { Web3 } = require("web3");
const web3 = new Web3("RPC_ENDPOINT_GOES_HERE");
const generateMnemonic = () => {
@Stuyk
Stuyk / singleton.gd
Last active August 25, 2023 16:21
Global Godot Singleton - Without Auto Loading
extends Node2D
class_name MySingleton
var hello_world: String = "Hello World!";
static var _instance: MySingleton;
static func instance() -> MySingleton:
if (!_instance):
_instance = MySingleton.new();
@Stuyk
Stuyk / aInterfaces.ts
Last active April 23, 2023 01:14
GTA:V Clothing Maximums (April 22, 2023)
interface ComponentData {
[component: number]: {
[drawable: number]: number;
};
}
interface ClothingList {
clothing: { [dlc: number]: ComponentData };
props: { [dlc: number]: ComponentData };
}
@Stuyk
Stuyk / femaleClothes.ts
Created April 20, 2023 20:05
(Stuyk) Clothing for GTA:V with DLC Hashes, and Max Textures Per Drawable (Generated April 20, 2023)
export const femaleClothes = {
clothes: {
'0': [
{
dlc: 0,
drawable: 0,
maxTextures: 1,
},
{
dlc: 0,
@Stuyk
Stuyk / gdrive
Created July 19, 2022 00:19
Minecraft Backup Script with ./gdrive
# Run These In Order...
wget https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_2.1.1_linux_386.tar.gz
tar -xvf gdrive_2.1.1_linux_386.tar.gz
chmod +x ./gdrive
./gdrive about
@Stuyk
Stuyk / items.ts
Created July 13, 2022 12:49
O:RP Item List
import * as alt from 'alt';
export const ITEM_TEMPLATES = {
almondseeds: {
name: 'Almond Seeds',
key: 'almondseeds',
base: 'seeds',
icon: 'seeds',
props: {
model: 'prop_veg_grass_02_a'
@Stuyk
Stuyk / heist.ts
Created September 19, 2021 19:11
Heist Job Example for Athena Framework
import * as alt from 'alt-server';
import { BlipController } from '../../client/systems/blip';
import { playerFuncs } from '../../server/extensions/Player';
import { InteractionController } from '../../server/systems/interaction';
import { Job } from '../../server/systems/job';
import { TextLabelController } from '../../server/systems/textlabel';
import { CurrencyTypes } from '../../shared/enums/currency';
import { SYSTEM_EVENTS } from '../../shared/enums/system';
import { ANIMATION_FLAGS } from '../../shared/flags/AnimationFlags';
@Stuyk
Stuyk / leaderboard.ts
Created July 21, 2021 13:41
alt:V Player List Snippet
import * as alt from 'alt-client';
import * as native from 'natives';
import { SYSTEM_EVENTS } from '../../shared/enums/system';
import { requestScaleForm, Scaleform } from '../utility/scaleform';
import { Timer } from '../utility/timers';
const SCALEFORM_NAME = 'mp_mm_card_freemode';
const MAX_PLAYERS = 16;
let index = 1;
@Stuyk
Stuyk / timers.ts
Created July 19, 2021 14:28
Keep Track of Timers, Average Completion Time, and What is Turned On / Off
import * as alt from 'alt-client';
interface TimerInfo {
name?: string;
id: number;
ms: number;
}
const TIMER_CATEGORIES = {
SMALLEST: [0, 1],
@Stuyk
Stuyk / gist:c3bec0a0b80628ee4c47510b0e9c156a
Created April 30, 2021 22:48
Athena Roleplay Framework - Face Name Locales and Shit
const DefaultLocales = {
titles: ['Appearance', 'Facial Structure', 'Hair', 'Details', 'Makeup', 'Info', 'Done'],
appearanceComponent: {
LABEL_FRAME: 'Physical Frame',
DESC_FRAME: 'How does your character model look?',
LABEL_MASCULINE: 'Masculine',
LABEL_FEMININE: 'Feminine',
LABEL_PRESETS: 'Presets',
DESC_PRESETS: 'Not feeling creative? Choose a preset.',
LABEL_FATHER: 'Father',