Skip to content

Instantly share code, notes, and snippets.

View Delivator's full-sized avatar
🏠
Working from home

David Delivator

🏠
Working from home
View GitHub Profile
@Delivator
Delivator / VLC_mp4_sout-all.reg
Created May 31, 2020 13:37
Adds "--sout-all --sout #display" arguments to VLC's .mp4 extension to play all available audio sources. Useful if you split audio tracks with shadowplay.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VLC.mp4\shell\Open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file --sout-all --sout \"#display\" \"%1\""
@Delivator
Delivator / google_search_maps_addon.user.js
Last active April 24, 2024 19:51 — forked from Daan-Grashoff/google_search_maps_addon.js
Bring back the google maps button and make map image clickable when searching on google
// ==UserScript==
// @name Google Search Maps Fix
// @namespace http://tampermonkey.net/
// @version 2024-03-07
// @description Bring Google maps button back
// @author Daan Grashoff / Delivator
// @match https://www.google.com/search*
// @include https://www.google.tld/search*
// @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png
// @grant none
@Delivator
Delivator / lockmicvolume.ps1
Created February 7, 2019 21:13
A little powershell script that sets the default microphone volume to a set value, requires nircmd.exe to be in same directory as the script
# How long it should wait between every loop in seconds
$secondsToWait = 5
# The volume you want in percent (0.92 = 92%)
$volume = 1.00
Write-Host "Starting invinite loop, press CTRL + C or close the window to stop"
while (1) {
Start-Process -FilePath "nircmd.exe" -WorkingDirectory $PSScriptRoot -ArgumentList "setsysvolume $([math]::floor(65535 * $volume))","default_record" -Wait
Write-Host "Volume set to $($volume * 100)%"
Start-Sleep -Seconds $secondsToWait
@Delivator
Delivator / autoexec.cfg
Last active July 16, 2023 12:22
CS:GO autoexec.cfg
// ==================== Ascii Art ====================
echo "$$$$$$$\ $$$$$$$$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$\ $$\ $$\ $$$$$$$$\ "
echo "$$ __$$\ $$ _____|$$ | \_$$ _|$$ | $$ |$$ __$$\\__$$ __|$$ __$$\ $$ __$$\ $$$\ $$$ |$$ _____|"
echo "$$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ / $$ | $$ | $$ / $$ |$$ | $$ | $$$$\ $$$$ |$$ | "
echo "$$ | $$ |$$$$$\ $$ | $$ | \$$\ $$ |$$$$$$$$ | $$ | $$ | $$ |$$$$$$$ | $$\$$\$$ $$ |$$$$$\ "
echo "$$ | $$ |$$ __| $$ | $$ | \$$\$$ / $$ __$$ | $$ | $$ | $$ |$$ __$$< $$ \$$$ $$ |$$ __| "
echo "$$ | $$ |$$ | $$ | $$ | \$$$ / $$ | $$ | $$ | $$ | $$ |$$ | $$ | $$ |\$ /$$ |$$ | "
echo "$$$$$$$ |$$$$$$$$\ $$$$$$$$\ $$$$$$\ \$ / $$ | $$ | $$ | $$$$$$ |$$ | $$ |$$\ $$ | \_/ $$ |$$$$$$$$\ "
echo "\_______/ \________|\________|\______| \_/ \__| \__| \__| \______/ \__| \__|\__|\__| \
@Delivator
Delivator / instagram-volume-slider.user.js
Last active June 18, 2023 09:58
Adds a volume slider to Instagram.
// Volume slider from: https://codepen.io/emilcarlsson/pen/PPNLPy
// ==UserScript==
// @name Instagram volume slider
// @namespace https://delivator.me/
// @version 0.5
// @description Adds a volume slider to Instagram
// @author Delivator.me
// @match https://www.instagram.com/*
// @homepage https://gist.github.com/Delivator/902cdaff0f21186b514e576e4670ff70
Param(
[Parameter(Mandatory=$True)]
[string]$Path,
[string]$Quality = "36",
[string]$Preset = "p4",
[string]$Tune = "hq",
[string]$Format = "webm",
[bool]$CopyAudio = $False,
[switch]$Keep
)
Param(
[Parameter(Mandatory=$True)]
[string]$Original,
[Parameter(Mandatory=$True)]
[string]$Compare
)
$OriginalSize = (Get-ChildItem $Original | Measure-Object Length -Sum).sum / 1Gb
$CompareSize = (Get-ChildItem $Compare | Measure-Object Length -Sum).sum / 1Gb
[string]$Difference
@Delivator
Delivator / transcode_all_mp4.ps1
Last active December 26, 2022 15:37
Re-encodes all .mp4 files in the same folder as the script to decrease their size
$location = Get-Location
$files = Get-ChildItem $location -Filter "*.mp4" | Sort-Object CreationTime
$quality = "36"
$counter = 0
$total = $files.Length
# Change Write-Progress Style
$PSStyle.Progress.MaxWidth = 240
Write-Host "Transcoding all mp4 files in this directory to mkv using NVENC AV1 with CQ $quality"
// ==UserScript==
// @name Cookie clicker SkyDB backup
// @namespace https://github.com/Delivator
// @version 0.1
// @description A plugin that allows you to save your Cookie Clicker game save to skynet.
// @author Delivator
// @match https://orteil.dashnet.org/cookieclicker/
// @grant none
// ==/UserScript==