Skip to content

Instantly share code, notes, and snippets.

# How to import: To use this, you have to import all 8 sections into weak auras as 8 separate weak auras
# This is because weak auras doesn't let you group different groups
# VERY IMPORTANT! Import the first one in the list first. This is because all of the ones below it are anchored off of the first title
# This also means that if you want to move them around you just have to open the config for, and move the first "FR Buffs Text Rogue" item
# How to display: Also these are set to show up for rogue class only. This lets them not show up on every character (I wanted to customize which buffs per character)
# Open up all 8 configs once you've imported them, go to the "Load" tab in the top right, then change the "Player Class" dropdown to your class
# How to extend: You can add more buffs in each section by cloning an existing buff. All you need to change is the icon (in the Display tab) and the buff spellid (in the Trigger tab).
@glajchs
glajchs / download_csgo_replays.sh
Created April 29, 2018 05:24
Download any CS:GO replays that were "corrupt" on first attempt to download
#!/bin/bash
cd "${HOME}/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/replays"
declare -a REPLAY_INFO_FILES=(`find . -name "*.info" -type f`)
declare -a FILES_WITH_TIMES=()
SEPARATOR="-SEPARATOR-"
DOWNLOADS=0
# Find all files that need downloading, and prepend them with a sortable timestamp
for INFO_FILE in "${REPLAY_INFO_FILES[@]}"; do
@glajchs
glajchs / make fail slack-purple
Created October 29, 2017 18:58
make fail slack-purple
make
Makefile:74: Makefile.dep: No such file or directory
pkg-config --modversion purple json-parser
2.10.12
1.1
gcc -MM -g -O2 -Wall -Werror -fPIC -D_DEFAULT_SOURCE=1 -std=c99 -I/usr/local/include/json-parser -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include slack.c slack-message.c slack-channel.c slack-im.c slack-user.c slack-rtm.c slack-blist.c slack-api.c slack-object.c slack-json.c purple-websocket.c > Makefile.dep
gcc -c -g -O2 -Wall -Werror -fPIC -D_DEFAULT_SOURCE=1 -std=c99 -I/usr/local/include/json-parser -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -o slack.o slack.c
gcc -c -g -O2 -Wall -Werror -fPIC -D_DEFAULT_SOURCE=1 -std=c99 -I/usr/local/include/json-parser -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -o slack-message.o slack-message.c
gcc -c -g -O2 -Wall -Werror -fPIC -D_DEFAULT_SOURCE=1 -std=c99 -I/usr/local/include/json-parser -I/usr/include/libpurple -
@glajchs
glajchs / gist:6def38634f9d3097b8d7
Created May 25, 2014 02:32
Tricks of the trade modification
diff -r TrickOrTreat/core.lua TrickOrTreat_official/core.lua
87,90d86
< local isTanking,_,threatpct,_,threatvalue = UnitDetailedThreatSituation(self.last_tricked, "target");
< if not isTanking then
< SendChatMessage("Tricks in " .. self.db.profile.cdwarntime .. " Seconds...", "WHISPER", nil, self.last_tricked)
< end
92c88
< self:Print("Tricks in " .. self.db.profile.cdwarntime .. " Seconds...")
---
> self:Print("Tricks is Ready!")
@glajchs
glajchs / gist:10788764
Created April 15, 2014 23:30
Oqueue 1.8.8 error
Message: Interface\AddOns\oqueue\oqueue_stats.lua:28: attempt to call field 'new' (a nil value)
Time: 04/15/14 19:27:35
Count: 1
Stack: Interface\AddOns\oqueue\oqueue_stats.lua:28: in function `new'
Interface\AddOns\oqueue\oqueue_stats.lua:132: in main chunk
Locals: self = <table> {
push = <function> defined @Interface\AddOns\oqueue\oqueue_stats.lua:116
avg = <function> defined @Interface\AddOns\oqueue\oqueue_stats.lua:49
mean = <function> defined @Interface\AddOns\oqueue\oqueue_stats.lua:81
@glajchs
glajchs / gist:9310559
Created March 2, 2014 17:49
pulse glc fork fails to build glc deb package
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "RelWithDebInfo"
-- Installing: /home/scott/sources/pulseglc/glc/debian/tmp/usr/bin/glc-capture
-- Removed runtime path from "/home/scott/sources/pulseglc/glc/debian/tmp/usr/bin/glc-capture"
-- Installing: /home/scott/sources/pulseglc/glc/debian/tmp/usr/bin/glc-play
-- Removed runtime path from "/home/scott/sources/pulseglc/glc/debian/tmp/usr/bin/glc-play"
-- Installing: /home/scott/sources/pulseglc/glc/debian/tmp/usr/lib/libglc-core.so.0.5.8
-- Installing: /home/scott/sources/pulseglc/glc/debian/tmp/usr/lib/libglc-core.so.0
-- Installing: /home/scott/sources/pulseglc/glc/debian/tmp/usr/lib/libglc-core.so
@glajchs
glajchs / gist:9309606
Created March 2, 2014 17:00
glc error using pulse
WINEPREFIX=/home/scott/.wine64 __GL_THREADED_OPTIMIZATIONS=1 WINEDEBUG=-all glc-capture -o /media/scott/Media/Captures/wow-%month%-%day%-%year%-%pid%-%capture%.glc -v 4 -a pulse -i --glfinish -e 420jpeg -b back --reload="<Shift>F7" wine64 "/home/scott/.wine64/drive_c/program files/world of warcraft/Wow.exe" -opengl
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory
[ 0.00s util info ] version 0.5.8-git-43a94f5
[ 0.00s util dbg ] Mar 2 2014 10:22:35, 4.8.1
[ 0.03s opengl dbg ] initializing
[ 0.03s gl_capture info ] capturing at 30.000000 fps
[ 0.03s gl_capture info ] reading frames from GL_BACK
[ 0.03s gl_capture info ] reading data as dword aligned
[ 0.03s alsa dbg ] initializing
[ 0.03s util info ] system information