Skip to content

Instantly share code, notes, and snippets.

View thc282's full-sized avatar
🎮
Gaming Student

thc282

🎮
Gaming Student
View GitHub Profile
@thc282
thc282 / canvasCapture.md
Last active February 8, 2025 19:06
All threeJS useful script

⚠⚠⚠⚠⚠this must be set when new a renderer object⚠⚠⚠⚠⚠
{preserveDrawingBuffer: true}

//⚠⚠⚠⚠⚠this must be set when new a renderer object⚠⚠⚠⚠⚠
//{preserveDrawingBuffer: true}
const renderer = new THREE.WebGLRenderer({preserveDrawingBuffer: true});
//set a id for getting the canvas
renderer.domElement.id = 'screenshot';
@Et3rnos
Et3rnos / FreeStickers.plugin.js
Created June 23, 2023 07:43
DiscordFreeStickers With Animated Stickers Support
/**
* @name FreeStickers
* @version 1.4.0
* @description Link stickers or upload animated stickers as gifs!
* @author An0
* @source https://github.com/An00nymushun/DiscordFreeStickers
* @updateUrl https://raw.githubusercontent.com/An00nymushun/DiscordFreeStickers/main/FreeStickers.plugin.js
*/
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active April 15, 2025 11:38
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@josemmo
josemmo / repair-mysql-data.ps1
Created August 28, 2020 18:48
Repair MySQL data directory (for XAMPP)
# Based on this answer: https://stackoverflow.com/a/61859561/1956278
# Backup old data
Rename-Item -Path "./data" -NewName "./data_old"
# Create new data directory
Copy-Item -Path "./backup" -Destination "./data" -Recurse
Remove-Item "./data/test" -Recurse
$dbPaths = Get-ChildItem -Path "./data_old" -Exclude ('mysql', 'performance_schema', 'phpmyadmin') -Recurse -Directory
Copy-Item -Path $dbPaths.FullName -Destination "./data" -Recurse
@errorseven
errorseven / obj2str.ahk
Last active August 26, 2023 13:56
Obj2Str Function - Useful for printing out Objects/Arrays!
/* ___ _ _ ____ __ _
/___\ |__ (_)___ \/ _\ |_ _ __
// // '_ \| | __) \ \| __| '__|
/ \_//| |_) | |/ __/_\ \ |_| |
\___/ |_.__// |_____\__/\__|_|
4/17/17 |__/ by errorseven
What this does:
Takes an Object/Array and turns it into a string. Maintains exact format,