Skip to content

Instantly share code, notes, and snippets.

View BOLL7708's full-sized avatar

Andreas Aronsson BOLL7708

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<title>Scale Reward Source</title>
<style>
body { font-family: sans-serif; }
span[contenteditable] {
padding: 0.25em;
border: 2px solid #00000080;
border-radius: 0.5em;
@BOLL7708
BOLL7708 / scale_reward.php
Last active November 30, 2022 21:44
Change your SteamVR world scale by showing this page as a browser source in OBS
<?php
/* Read Me!
*
* 1. This requires a server with PHP to run, I recommend XAMPP: https://www.apachefriends.org/download.html
* 2. This requires OpenVR2WS, find the latest release here: https://github.com/BOLL7708/OpenVR2WS/releases
* 3. Fill in the missing values in the Config section below, follow the links if necessary!
* 4. With all of this and a SteamVR game running, open this page in a browser to see if it works.
* 5. If it did, you can flip the output to be hidden, and then add this as a browser source to OBS.
* 6. Then use whatever bot or solution you want to show/hide this source.
* 6a. Make sure to not hide the source again before the scale has been reset.
@BOLL7708
BOLL7708 / fisheye.v10.shader
Created November 20, 2022 10:37
OBS Fisheye Shader (old)
// This is a shader I hacked together by various sources online to use with the OBS ShaderFilter plugin, which has since been retired.
uniform float _width = 1920;
uniform float _height = 1080;
uniform float _distort = 1.0;
uniform float _zoom = 3.0;
uniform float _horizontal = 0;
uniform float _vertical = 0;
uniform float _trim = 0;
uniform float _gradient = 0;
uniform float _alpha = 0.5;
@BOLL7708
BOLL7708 / twitch-bonus-auto-claimer.js
Last active July 26, 2023 17:35
BOLL's UserScripts
// ==UserScript==
// @name Twitch Bonus Auto Claimer
// @namespace https://github.com/BOLL7708
// @homepageURL https://gist.github.com/BOLL7708/29fe3599000003473c49bb1d62ba1d33
// @downloadURL https://gist.github.com/BOLL7708/29fe3599000003473c49bb1d62ba1d33/raw/twitch-bonus-auto-claimer.js
// @match *://twitch.tv/*
// @match *://www.twitch.tv/*
// @grant GM_getValue
// @grant GM_setValue
// @version 1.0
@BOLL7708
BOLL7708 / resize_sub_and_bit_badges.cmd
Last active December 16, 2021 23:26
ImageMagick command script to resize an image for Twitch Subscriber Badges and Bit Badges
if [%1]==[] goto :eof
:loop
SET filename=%1
magick %filename% -resize 72x72 -quality 100 %filename:.png=_72.png%
magick %filename% -resize 36x36 -quality 100 %filename:.png=_36.png%
magick %filename% -resize 18x18 -quality 100 %filename:.png=_18.png%
shift
if not [%1]==[] goto loop
@BOLL7708
BOLL7708 / resize_challenge_and_reward_icons.cmd
Last active December 16, 2021 23:26
ImageMagick command script to resize an image for Twitch Community Challenges and Channel Rewards
if [%1]==[] goto :eof
:loop
SET filename=%1
magick %filename% -resize 112x112 -quality 100 %filename:.png=_112.png%
magick %filename% -resize 56x56 -quality 100 %filename:.png=_56.png%
magick %filename% -resize 28x28 -quality 100 %filename:.png=_28.png%
shift
if not [%1]==[] goto loop
@BOLL7708
BOLL7708 / slideshow.php
Last active March 13, 2024 12:14
Page that loads filenames from folder and displays a slideshow, meant for OBS overlays
<?php
/*
This page uses PHP to scan a folder for files, then randomizes their
order and displays them one after the other with a transition. The
cycle loops and keeps the same order until the page is reloaded.
1. Create a folder next to this file named 'images' and put your
images in that.
2. Adjust the transition time and/or the display time in the places
noted below to your liking.
@BOLL7708
BOLL7708 / openvr_api_patch.diff
Last active January 30, 2019 19:06
Add OpenVR notification support to C# header file
diff --git a/SteamVR_HUDCenter/SteamVR/openvr_api.cs b/SteamVR_HUDCenter/SteamVR/openvr_api.cs
index 37ee80a..5316fc3 100644
--- a/SteamVR_HUDCenter/SteamVR/openvr_api.cs
+++ b/SteamVR_HUDCenter/SteamVR/openvr_api.cs
@@ -5631,6 +5631,7 @@ public enum EIOBufferMode
public IntPtr m_pVRInput; // class vr::IVRInput *
public IntPtr m_pVRIOBuffer; // class vr::IVRIOBuffer *
public IntPtr m_pVRSpatialAnchors; // class vr::IVRSpatialAnchors *
+ public IntPtr m_pVRNotifications; // class vr::IVRNotifications *
}