Skip to content

Instantly share code, notes, and snippets.

View flleeppyy's full-sized avatar
💭
aaaaaaaaaaaaaaaaaaaaa

Chen Marisa flleeppyy

💭
aaaaaaaaaaaaaaaaaaaaa
View GitHub Profile
@flleeppyy
flleeppyy / bruh.ts
Created March 17, 2024 13:48
Knex JSON parser to/from SQLite
function parseToDatabaseJson<T>(obj: Record<string, unknown>): T;
function parseToDatabaseJson<T>(obj: Record<string, unknown>): string | T | Record<string, unknown> {
if (obj._tableName) delete obj._tableName;
if (Object.prototype.toString.call(obj) === "[object Array]") {
return JSON.stringify(obj);
} else if (typeof obj === "object") {
const newObj: Record<string, unknown> = {};
for (const key in obj) {
// eslint-disable-next-line @typescript-eslint/naming-convention
@flleeppyy
flleeppyy / choccy.js
Created January 25, 2024 04:45 — forked from lilianalillyy/choccy.js
Fuck Apex Learning
// const fetch = require("node-fetch")
let createPlaceholderAnswer = (letter, description) => ({
value: `${letter}. ${description}`,
letter,
select: () => {
console.log("debug: called select() in answer", letter);
},
});
@flleeppyy
flleeppyy / Read.md
Last active August 23, 2023 10:07
Trillian Archival Process

Trillian IM Software Archival

Obviously trying to get old versions of software from a software company doesn't usually work out when you try to ask them "hey could we have all of your software versions for software archival?" so WHY NOT DO IT OURSELVES?!

In case you don't know what Trillian is, click here.

The amount of builds per version (At least past 5.4 from what I can tell) is determined by the changelogs available for that version of Trillian. Usually the last changelog indicates how many builds there are for that version, but it's not always correct.

Notable sources

for future reference.

@flleeppyy
flleeppyy / index.html
Last active May 30, 2023 05:12
DistroKid Copy Paste song info to get ISRC and stuff
<!DOCTYPE html>
<html>
<head>
<title>Song Data</title>
<script>
function parseSongs() {
const inputText = document.getElementById('input').value.trim();
const rd = inputText.includes("Release date: ");
const nlSplit = inputText.split("\n")
@flleeppyy
flleeppyy / iTunesDontShitSelfTool.js
Last active October 1, 2023 08:39
My personal yt-dlp commands
const fs = require('fs');
const path = require('path');
const musicDirectory = 'D:/Music/Music'; // Specify your music directory here
function processFolders(directory) {
fs.readdir(directory, (err, files) => {
if (err) {
console.error(`Error reading directory: ${directory}`);
return;
@flleeppyy
flleeppyy / JavaUtils.java
Created July 8, 2022 10:26
deleted source for some java shit
package com.flleeppyy.serverinstaller.Utils;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
This file has been truncated, but you can view the full file.
PolyMC version: 1.3.2-404b9599
Launched instance in online mode
authserver.mojang.com resolves to:
[13.35.124.2, 13.35.124.14, 13.35.124.18, 13.35.124.32]
session.minecraft.net resolves to:
[52.7.153.255, 54.173.66.187, 54.164.34.185]
@flleeppyy
flleeppyy / gist:7af3f2b115f8ab1f26c43f78316e59d3
Created June 25, 2022 06:10
an extremely unneccisarily long log file that I'm considering trimming oh well
This file has been truncated, but you can view the full file.
[24Jun2022 22:32:31.348] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, flleeppyy, --version, 1.16.5, --gameDir, F:/Games/PolyMC/instances/Chenphoria Callisto/.minecraft, --assetsDir, F:/Games/PolyMC/assets, --assetIndex, 1.16, --uuid, c5f9e2a6369a41cfa9ad30eecb848d8f, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.34, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550, --width, 854, --height, 480]
[24Jun2022 22:32:31.361] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 1.8.0_333 by Oracle Corporation
[24Jun2022 22:32:42.687] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFineTransformationService.onLoad
[24Jun2022 22:32:42.692] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFine ZIP file: F:\Games\PolyMC\instances\Chenphoria Callisto\.minecraft\mo
const secsArray = [
5.2,
6.0,
2.8,
10.0,
3.6,
8.0,
15.0,
11.5,
1.5,
@flleeppyy
flleeppyy / start.sh
Created April 7, 2022 19:43
JMusicBot configuration
nohup java -Dnogui=true -jar JMusicBot-0.3.8.jar &