Skip to content

Instantly share code, notes, and snippets.

@ryrun
ryrun / onedrive-mklink.md
Last active June 14, 2023 17:43
Use mklink to specify specific folder for OneDrive Upload
@ryrun
ryrun / nvidia-profile.inspector-arguments.md
Last active June 12, 2023 14:40
NVidia Profile Inspector, load a nib profile via Shortcut on login
  • create a shortcut for the exefile
  • add this to load a profile: C:\Users\Shadow\Documents\nvidiaProfileInspector\nvidiaProfileInspector.exe -silent "C:\Users\Shadow\Documents\nvidiaProfileInspector\Base Profile.nip"
  • copy the shortcut file to shell:startup
@ryrun
ryrun / screenshotWatcher.ps1
Last active June 2, 2023 16:52
Windows 10 and Windows 11: "Windows Key+Print" Play a sound for Screenshots, when new file is created
# Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser <- default
# Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser <- all scripts
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser <- only local scripts
# Task Sheduler, on Systemstart: PowerShell.exe -ExecutionPolicy Bypass -File "C:\Users\Shadow\Documents\screenshotWatcher.ps1" <- best option
$wav = New-Object System.Media.SoundPlayer
$wav.SoundLocation='C:\Program Files (x86)\Steam\resource\camera1.wav'
$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = "C:\Users\Shadow\Pictures\Screenshots"
$watcher.Filter = "*.*"
$watcher.IncludeSubdirectories = $true
@ryrun
ryrun / midi_ch1_exckl.cxx
Last active April 23, 2023 11:52
Bluecat's Plug'N'Script - Midi Channel 1 Exclusive only, when playing
/** \file
* MIDI channel filter.
* Filter MIDI events (keeps only MIDI events for the selected channel).
*/
#include "lib/Midi.hxx"
// metadata
string name="MIDI Channel Special Filter";
string description="Filters events of other channels (when channel 1 is used)";
@ryrun
ryrun / shadow_pc_drs.md
Last active April 16, 2023 14:07
Lock nvidia settings, so it stays after reboot on a Shadow PC

Lock the nvdrsdb0.bin file under "C:\ProgramData\NVIDIA Corporation\Drs"

@ryrun
ryrun / shadow_pc_optimize.md
Last active February 9, 2024 15:23
Optimize Shadow PC Windows 10 system

General for Windows 10 / 11

  • Use Game Ready Driver instead of Geforce Experience (less nvidia process in the background)
  • Disable all non used programms from autostart (use taskmgr / autostart tab)
  • Change windows system "Performance options" to performance (Just enable better fonts rendering)
  • Disable background App in Windows 10 (use search for background apps configuration)
  • Disable notifications in Windows 10 (use search for notifications configuration)
  • Disable scaling correction of Windows 10 (use search for scaling)
  • Disable autostart for all common game launchers (Steam, EA, ...)
  • Disable auto update in all common game launchers
@ryrun
ryrun / display_shortcut.md
Last active March 29, 2023 17:03
Open windows display settings as .lnk / shortcut

Use following to start moinitor settings in Windows 10 / 11:

C:\Windows\System32\rundll32.exe display.dll,ShowAdapterSettings 0

@ryrun
ryrun / main.go
Last active February 4, 2023 14:21 — forked from zergon321/main.go
Change the display resolution in Golang on Windows for Shadow PC (60hz bandwidth bug)
//big thx to https://gist.github.com/zergon321/4914a1af6c3573df47d959b064811f11
//use it for changing the refresh on a shadow pc to get high bandwidth on high refrehrate (60hz bandwidth bug)
package main
import (
"bufio"
"fmt"
"os"
"syscall"
"unsafe"
@ryrun
ryrun / arpmelodymaker.lua
Created September 10, 2022 18:44
VST Protoplug midi plugin - Simple Arp with CH2 note exclusive
require "include/protoplug"
speed = 0.25
notelength = 0.2
notes = {0,7,12}
buffer = {}
buffer2 = {}
time = 0
lasttime = 0
@ryrun
ryrun / protoplug-channel2-exclusive.lua
Last active April 10, 2023 21:40
Protoplug LUA midi plugin - play midi channel 2 exclusive, note off other notes during playing (perfect arp melody maker)
require "include/protoplug"
local buffer = {}
local channelOneActive = false
function mydebug(ev, skipped)
local onoff = "On"
local skip = "skipped"
if not skipped then