Skip to content

Instantly share code, notes, and snippets.

View RagedUnicorn's full-sized avatar

Raged Unicorn RagedUnicorn

View GitHub Profile
@RagedUnicorn
RagedUnicorn / cleanup_aws_s3_bucket.ps1
Created August 2, 2023 10:18
Cleanup AWS S3 Bucket
$Bucket = "ragedunicorn-ai"
$Prefix = "work/gressil_reimagined/"
$Objects = aws s3api list-object-versions --bucket $Bucket --prefix $Prefix | ConvertFrom-Json
ForEach ($Object in $Objects.Versions) {
Write-Output "Deleting object: $($Object.Key), version: $($Object.VersionId)"
aws s3api delete-object --bucket $Bucket --key $Object.Key --version-id $Object.VersionId
}
@RagedUnicorn
RagedUnicorn / wow_lua_dump_debug_tool.md
Last active July 18, 2023 21:19
WoW Lua Dump Debug Tool

Dump contents of variable to chat

Executed from chat

Requires a path to the variable e.g. a global variable

/dump [variable]
@RagedUnicorn
RagedUnicorn / git_lg.alias
Created July 25, 2021 09:35
Git pretty log command
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
@RagedUnicorn
RagedUnicorn / wow_classic_activate_framestack_names.md
Created August 15, 2019 18:44
Explains how to enable more clear frame names with framestack in the new WoW Classic Game

If prefer Parentkeys is enabled the /framestack command shows cryptic names for frames. With this setting disabled the actual framenames are shown

Turn on Frame Names

/console fstack_preferParentKeys 0

Turn off Frame Names

@RagedUnicorn
RagedUnicorn / wow_classic_activate_lua_errors.md
Last active December 1, 2023 03:59
Explains how to enable lua errors if they are deactivated in the new WoW Classic Game

Turn errors on

/console scriptErrors 1

Turn errors off

/console scriptErrors 0
@RagedUnicorn
RagedUnicorn / wow_lua_texture_coordinates.lua
Last active May 10, 2022 21:59
WoW Lua examples for working with texture coordinates
--[[
Remove borders from a spell/item icon
]]--
local texture = frame:CreateTexture("Texture_Name", "ARTWORK")
texture:SetTexCoord(0.07, 0.93, 0.07, 0.93)
texture:SetPoint("LEFT", frame, -40, 0)
texture:SetSize(40, 40)
--[[
Reduce icons to small bar (similar to retail frameplates debuffs)
@RagedUnicorn
RagedUnicorn / package_sending_vanilla_client.png
Last active June 4, 2019 19:50
A description on how certain actions can influence position update in classic world of warcraft
package_sending_vanilla_client.png
@RagedUnicorn
RagedUnicorn / combatlog.md
Created May 22, 2019 21:47
World of Warcraft enable extensive combatlog logging

Enable Extensive Combatlog Logging

Use the following chatcommand:

/combatlog

Upon enabling WoW will print the logfile name. On Windows this can usually be found in the following path:

@RagedUnicorn
RagedUnicorn / Config.wtf
Created April 22, 2019 12:40
World of Warcraft Legion example configuration
SET portal "18.197.225.27"
SET textLocale "enUS"
SET audioLocale "enUS"
SET agentUID "wow_enus"
SET hwDetect "0"
SET videoOptionsVersion "15"
SET gxWindow "1"
SET gxApi "D3D11"
SET gxMaximize "0"
SET playIntroMovie "7"
@RagedUnicorn
RagedUnicorn / Config.wtf
Created April 22, 2019 12:39
World of Warcraft Vanilla example configuration
SET hwDetect "0"
SET gxColorBits "24"
SET gxDepthBits "24"
SET gxResolution "1920x1080"
SET gxMultisampleQuality "0.000000"
SET fullAlpha "1"
SET lodDist "100.000000"
SET SmallCull "0.010000"
SET DistCull "500.000000"
SET trilinear "1"