Skip to content

Instantly share code, notes, and snippets.

@rakkarage
rakkarage / Focus_OnEvent.lua
Last active July 21, 2024 16:55
kgPanels wow addon functions for changing a gradient based on health color
-- Early exit if SetGradient method is not available
if not self.bg.SetGradient then return end
-- Early exit if target does not exist
if not UnitExists('focus') then return end
-- Calculate focus health percentage
local healthPercent = UnitHealth('focus') / UnitHealthMax('focus')
-- Initialize color variables for gradient start and end
@rakkarage
rakkarage / taint.log
Created December 10, 2023 00:24
gtfo taint
12/9 19:23:19.327 Global variable ON_BAR_HIGHLIGHT_MARKS tainted by GTFO - Interface/FrameXML/ActionButton.lua:58 ClearOnBarHighlightMarks()
12/9 19:23:19.327 Interface/AddOns/Blizzard_ClassTalentUI/Blizzard_ClassTalentButtonTemplates.lua:30 Button:ShowActionBarHighlights()
12/9 19:23:19.327 Interface/AddOns/Blizzard_ClassTalentUI/Blizzard_ClassTalentButtonTemplates.lua:279
12/9 19:23:19.327 Execution tainted by GTFO while reading ON_BAR_HIGHLIGHT_MARKS - Interface/FrameXML/ActionButton.lua:62 GetOnBarHighlightMark()
12/9 19:23:19.327 Interface/FrameXML/ActionButton.lua:623 MultiBarRightButton6:UpdateSpellHighlightMark()
12/9 19:23:19.327 Interface/FrameXML/ActionButton.lua:531 MultiBarRightButton6:Update()
12/9 19:23:19.327 Interface/FrameXML/ActionButton.lua:503 MultiBarRightButton6:UpdateAction()
12/9 19:23:19.327 Interface/FrameXML/ActionButton.lua:980 MultiBarRightButton6:OnEvent()
12/9 19:23:19.327 Interface/FrameXML/ActionButton.lua:207
12/9 19:23:19.327 Interface/
@rakkarage
rakkarage / taint.log
Created December 7, 2023 05:27
FrameColor taint.log
This file has been truncated, but you can view the full file.
12/7 00:22:48.523 Global variable ON_BAR_HIGHLIGHT_MARKS tainted by FrameColor - Interface/FrameXML/ActionButton.lua:58 ClearOnBarHighlightMarks()
12/7 00:22:48.523 Interface/AddOns/Blizzard_ClassTalentUI/Blizzard_ClassTalentButtonTemplates.lua:30 Button:ShowActionBarHighlights()
12/7 00:22:48.523 Interface/AddOns/Blizzard_ClassTalentUI/Blizzard_ClassTalentButtonTemplates.lua:338
12/7 00:22:48.523 Execution tainted by FrameColor while reading ON_BAR_HIGHLIGHT_MARKS - Interface/FrameXML/ActionButton.lua:62 GetOnBarHighlightMark()
12/7 00:22:48.523 Interface/FrameXML/ActionButton.lua:623 ActionButton12:UpdateSpellHighlightMark()
12/7 00:22:48.523 Interface/FrameXML/ActionButton.lua:531 ActionButton12:Update()
12/7 00:22:48.523 Interface/FrameXML/ActionButton.lua:503 ActionButton12:UpdateAction()
12/7 00:22:48.523 Interface/FrameXML/ActionBarController.lua:160 ActionBarController_UpdateAll()
12/7 00:22:48.523 Interface/FrameXML/ActionBarController.lua:66
@rakkarage
rakkarage / start-godot.log
Created November 11, 2023 22:34
Fast VSCode Godot First Breakpoint on Windows
<- (E) {"seq":3,"type":"event","event":"output","body":{"category":"console","output":"-------------------------------------------------------------------\nYou may only use the C/C++ Extension for Visual Studio Code\nwith Visual Studio Code, Visual Studio or Visual Studio for Mac\nsoftware to help you develop and test your applications.\n-------------------------------------------------------------------\n","severity":"ok"}}
-------------------------------------------------------------------
You may only use the C/C++ Extension for Visual Studio Code
with Visual Studio Code, Visual Studio or Visual Studio for Mac
software to help you develop and test your applications.
-------------------------------------------------------------------
<- (R) {"seq":5,"type":"response","request_seq":2,"success":true,"command":"launch"}
-> (C) {"type":"response","seq":1,"command":"handshake","request_seq":2,"success":true,"body":{"signature":"00081lVa4sBNbzRUplPTWl3UPlnZiduc6n12hrM7XayWuM="}}
<- (E) {"seq":8,"type":"event","ev
@rakkarage
rakkarage / start-godot.log
Created November 4, 2023 19:34
Slow VSCode Godot First Breakpoint on Ubuntu
1: (51900) ->=thread-created,id="79",group-id="i1"
1: (51901) ->~"[New Thread 0x7fffaf7fe6c0 (LWP 275881)]\n"
1: (51901) ->*running,thread-id="79"
1: (51901) <-1101-thread-info 79
[New Thread 0x7fffaf7fe6c0 (LWP 275881)]
1: (51901) ->1101^done,threads=[{id="79",target-id="Thread 0x7fffaf7fe6c0 (LWP 275881)",name="godot.linuxbsd.",state="running",core="4"}]
1: (51901) ->(gdb)
1: (51901) 1101: elapsed time 0
1: (51901) Send Event AD7ThreadCreateEvent
1: (51901) ->~"[Thread 0x7fffaf7fe6c0 (LWP 275881) exited]\n"
@rakkarage
rakkarage / disgaea6juicebar.ahk
Last active November 22, 2022 18:09
Disgaea 6 Juice Bar AutoHotKey script
#ifWinActive Disgaea 6 Complete
^x::
Process(100)
return
^c::
Process(50)
return
^v::
Process(10)
return
@rakkarage
rakkarage / Callout.m
Last active June 7, 2020 17:14
Callout.m
#import "Callout.h"
#import "GameLayer.h"
@implementation Callout
@synthesize delegate = _delegate;
- (void)lookTouched
{
playButtonSound();
[Desktop Entry]
Name=Godot Engine
Comment=Free and Open Source 2D and 3D Game Engine
Terminal=false
Type=Application
Categories=Development;IDE;
Keywords=game;engine;ide;
Exec=/home/rakka/Data/Godot_v3.2.1-stable_mono_x11_64/Godot_v3.2.1-stable_mono_x11.64
Icon=/home/rakka/Data/Godot_v3.2.1-stable_mono_x11_64/icon.png
@rakkarage
rakkarage / Utility.cs
Created September 15, 2019 13:03
MonoBehaviour Do, DoAfter, and Repeat for StartCoroutine
using System;
using System.Collections;
using UnityEngine;
namespace ca.HenrySoftware.Rage
{
public static partial class MonoBehaviourExtensions
{
public static void Do(this MonoBehaviour m, Action a)
{
m.StartCoroutine(DoCoroutine(a));
@rakkarage
rakkarage / gist:003f9dee43c9640e36f082974da349a1
Created March 4, 2019 14:15
vscode unity external tool
-g "$(File):$(Line)"