- Bandaged Better Discord
- plugins go here
%appdata%/BetterDiscord/plugins
- Its javascript so I pull libraries > plugins
runelite.plugin.js
> plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This Inteliij IDE Console script migrates plugins from old *ID classes | |
* to newer gameval-based classes that are generated from Jagex's | |
* actual internal names for things. | |
* | |
* This script has a few quirks | |
* - InventoryID migration is not perfect, but should work for most cases | |
* and any failed cases will result in a compilatino error | |
* - star importing net.runelite.api.* will make it fully qualify any new | |
* references, so ideally remove this from your codebase before running it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function decode(stream: AsyncIterable<Uint8Array>): Promise<ImageData> { | |
let smallBuffer = new Uint8Array(14); | |
let off = 0; | |
let bufferEnd = 0; | |
let buffer = smallBuffer; | |
let needed = 14; | |
let decode = decodeHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package abex.os.hmr; | |
import com.google.common.base.CharMatcher; | |
import com.google.common.base.Splitter; | |
import com.google.common.io.Files; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.reflect.InvocationTargetException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"io" | |
"os" | |
"github.com/natefinch/atomic" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-WebRequest "https://api.runelite.net/runelite-$(Invoke-WebRequest "https://static.runelite.net/bootstrap.json"|ConvertFrom-Json|Select -ExpandProperty client|Select -ExpandProperty version)/loottracker?count=10000" -Headers @{"Runelite-Auth"=$(Get-Content "~/.runelite/session"|ConvertFrom-Json|Select -ExpandProperty uuid)} -OutFile runelite_loottracker.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
powershell -ExecutionPolicy Bypass -command "gc %~dp0%0.bat | select -skip 3" | powershell -ExecutionPolicy Bypass -command - | |
exit /B | |
#We are now in powershell | |
$procs = @{} | |
Get-Process | ForEach-Object { | |
$obj = $procs.Get_Item($_.Name) | |
if(!$obj){ | |
$obj = New-Object PSObject | |
$obj | Add-Member -type NoteProperty -Name Name -Value $_.Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"backcolor": "#dedede", | |
"switchMount": "cherry", | |
"switchBrand": "cherry", | |
"switchType": "MX1A-F1xx", | |
"plate": true | |
}, | |
[ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"Blast Furnace","columns":[{"type":2,"header":"Bar","val":["2349","2351","2355","2353","2357","2359","2361","2363"]},{"type":3,"header":"Profit","val":["{3}-{2}"]},{"type":3,"header":"Cost","val":["[b438]+[b436]","[b440]","[b442]","[b440]+[b453]","[b444]","[b447]+([b453]*2)","[b449]+([b453]*3)","[b451]+([b453]*4)"]},{"type":3,"header":"Sell","val":["[sc0]"]},{"type":3,"header":"GP/Item-Run (bag)","val":["{1}/2","{1}/1","{1}/1","{1}/1","{1}/1","{1}/1.5","{1}/2","{1}/2.5"]},{"type":3,"header":"GP/Item-Run (no bag)","val":["{1}/2","{1}/1","{1}/1","{1}/2","{1}/1","{1}/3","{1}/4","{1}/5"]}],"icon":"2353","sortCol":4,"sortOrder":1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"Nightmare Zone","columns":[{"type":2,"header":"Item","val":["231","223","1779","1783","3138","401","241","6470","556","555","557","554","1436","7936","227"]},{"type":3,"header":"Points","val":["175","300","75","200","1250","200","750","5000","25","25","25","25","60","70","145"]},{"type":3,"header":"GP/pt","val":["[sc0]/{1}"]},{"type":3,"header":"GP","val":["[sc0]"]}],"targets":[],"icon":"6470","sortCol":2,"sortOrder":1} |