Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <lua.h>
#include <lualib.h>
#include <Luau/Compiler.h>
static void execute(lua_State* L, const char* chunkName, const char* script) {
std::string bytecode = Luau::compile(script);
if (luau_load(L, chunkName, bytecode.data(), bytecode.size()) != LUA_OK) {
std::cout << lua_tostring(L, -1) << std::endl;
lua_pop(L, -1);
@randomdevlol
randomdevlol / gen-sln.js
Created March 31, 2021 19:55
Node.js script for automating the process of adding a bunch of c# projects into a Visual Studio 2019 solution
const fs = require('fs/promises');
const path = require('path');
async function work(workDir) {
const files = await fs.readdir(workDir);
for (let i = 0; i < files.length; i++) {
const file = files[i];
const filePath = path.join(workDir, file);
if (file.endsWith('.csproj')) {
@randomdevlol
randomdevlol / rbx-asset-downloader.py
Last active December 27, 2020 00:06
Python 3 script allowing you to download assets off of Roblox's cdn
# randomdevlol
# credits to crackleharvest36 for showing me this method
from sys import argv, exit
from os import path, mkdir
try:
from requests import get
except:
print('Install the requests library')
@randomdevlol
randomdevlol / 1._Howto_build_Win2k3.md
Created September 30, 2020 22:14 — forked from nk2IsHere/1._Howto_build_Win2k3.md
an interseting tutoriel
@randomdevlol
randomdevlol / Mineplex Redis Guide.md
Last active May 15, 2024 15:57
Guide to setting up Mineplex's redis

Mineplex Redis Guide

Guide for setting up redis for the Mineplex's hub, arcade, staff server, and server monitor.
Guía para el redis server para Mineplex's hub, arcade, staff server, y server monitor. NOTA: Tu no obtenes ayuda desde yo en espanol porque mi espanol es malo.

English

Questions or issues?

Contact me on my Discord, memes#2030

Steps

  • Get a redis server. Download one here.