Skip to content

Instantly share code, notes, and snippets.

View FrazzIe's full-sized avatar

Fraser Watt FrazzIe

View GitHub Profile
@FrazzIe
FrazzIe / pterodactyl_truenas_scale.md
Last active January 18, 2026 15:45
A lengthy guide on setting up Pterodactyl on TrueNAS SCALE

A guide to setup Pterodactyl on TrueNAS SCALE

I tried including everything I could think I had to do to get this up and running, I haven't got any database hosts running yet so this guide only contains what I have currently.

  • Version: TrueNAS-SCALE-24.10-RC.2
  • Created: 26/11/2023
  • Last updated: 08/10/2024

Prerequisites

  • Network interface is setup with a bridge configuration
@FrazzIe
FrazzIe / quick-sort.js
Created February 15, 2022 03:47
Basic JavaScript quick sort for my own understanding
// original: https://stackabuse.com/quicksort-in-javascript/
/*
NOTE:
- This algorithm can be implemented iteratively making use of a simple stack
- This algorithm doesn't take up any additional space (mutates original array)
- Worst case O(n^2), Average (Onlogn); Comes down to the selected pivot
*/
/**
@FrazzIe
FrazzIe / merge-sort.js
Created February 13, 2022 22:56
Basic JavaScript merge sort for my own understanding with a optional custom compare func
// original: https://stackabuse.com/merge-sort-in-javascript/
/**
* Default comparison
* @param {number} left
* @param {number} right
* @returns {number}
*/
function defaultCompare(left, right)
{
@FrazzIe
FrazzIe / cl_wheels.js
Created January 5, 2022 14:27
FiveM: Generates a list of all wheels available for a car
const eVehicleWheelType =
{
VWT_SPORT: 0,
VWT_MUSCLE: 1,
VWT_LOWRIDER: 2,
VWT_SUV: 3,
VWT_OFFROAD: 4,
VWT_TUNER: 5,
VWT_BIKE: 6,
VWT_HIEND: 7,
/*
Basic example:
asciiMap = asciiMap();
F = asciiMap["toNumber"]["F"] + asciiMap["offset"];
G = asciiMap["toChar"][71 - asciiMap["offset"]];
*/
asciiMap() {
ascii = "! \" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~";
@FrazzIe
FrazzIe / weapons.lua
Created August 30, 2020 13:24
Some old weapons list i made back in 2018 for gtav
Weapons = {
List = {
"WEAPON_PISTOL",
"WEAPON_PISTOL_MK2",
"WEAPON_COMBATPISTOL",
"WEAPON_PISTOL50",
"WEAPON_SNSPISTOL",
"WEAPON_SNSPISTOL_MK2",
"WEAPON_HEAVYPISTOL",
"WEAPON_VINTAGEPISTOL",
@FrazzIe
FrazzIe / syringe.lua
Created July 21, 2019 06:19
Syringe Animation - FiveM (Weird)
local syringeProp = `prop_syringe_01`
local syringeDict = "rcmpaparazzo1ig_4"
local syringeAnim = "miranda_shooting_up"
local syringeBone = 28422
local syringeOffset = vector3(0, 0, 0)
local syringeRot = vector3(0, 0, 0)
function UseSyringe()
RequestAnimDict(syringeDict)
@FrazzIe
FrazzIe / tablet.lua
Created July 18, 2019 22:36
Tablet animation - FiveM
local tablet = false
local tabletDict = "amb@code_human_in_bus_passenger_idles@female@tablet@base"
local tabletAnim = "base"
local tabletProp = `prop_cs_tablet`
local tabletBone = 60309
local tabletOffset = vector3(0.03, 0.002, -0.0)
local tabletRot = vector3(10.0, 160.0, 0.0)
function ToggleTablet(toggle)
if toggle and not tablet then
@FrazzIe
FrazzIe / card.lua
Created July 3, 2019 14:26
Adapative Card Password Example - FiveM
--[[
Adapative Card Password Example
Schema -> https://adaptivecards.io/explorer/
Designer -> https://adaptivecards.io/designer/
]]--
local attempts = {}
local password = "meep"
local passwordCard = {
["type"] = "AdaptiveCard",
This file has been truncated, but you can view the full file.
"2ND_SERVE": "NULL"
"2SLOW": "NULL"
"95PEER_SHOPDIS": "You now have a ~1~% discount in shops for achieving good behavior reports from 90% of your peers."
"1001A": "NULL"
"1001S": "NULL"
"1004A": "NULL"
"1004S": "NULL"
"1005A": "NULL"
"1005S": "NULL"
"1007A": "NULL"