Skip to content

Instantly share code, notes, and snippets.

View Alistair1231's full-sized avatar

Alistair1231 Alistair1231

View GitHub Profile
@Alistair1231
Alistair1231 / deck.adoc
Last active January 19, 2023 16:36
LoR Decks

Decks

Table of Contents

Gwen/Katarina

CEDAGBQFBQIBYAIFAUFQCAQDBEAQCBJRAEAQGNYBAUBQ6BADAYCQ2DRAAEAQKKACAEBSULQBAQBRMAICAECQGNI
@Alistair1231
Alistair1231 / _settings_pic.md
Created October 13, 2022 19:57
Use both inputs on Behringer UM2
  • install voicemeeter banana

  • Driver from here or here

    • uninstall asio4all driver
    • plug device in while installing for it to work. If it is already plugged in the setup might time out.
  • Settings in Voicemeeter for having one virtual input for voice only and one for having both inputs https://i.imgur.com/WLZqjmz.png

@Alistair1231
Alistair1231 / download.ps1
Last active December 14, 2024 09:10
yt-dlp (Youtube-dl) download music playlist
yt-dlp 'https://www.youtube.com/playlist?list=PLXkGLqXZchysA87AHg0fYOZTLEHBZsMuT' `
-I 1:200 <# only download index 1 - 200 #> `
-o "%(playlist_count+1-playlist_index)d - %(uploader)s - %(title)s.%(ext)s" <# name is "index (reverse) - uploader - title" #> `
--embed-thumbnail <# needs atomicparsley to be installed #> `
-S "abr:192" <# yt-dlp only!, best audio that has at max 192kbit/s #> `
-f "ba" <# format with best audio #> `
-x <# audio only #> `
--audio-format mp3 <# needs ffmpeg installed #> `
--download-archive ./archive.txt <# only download files that weren't already downloaded #> `
--restrict-filenames <# only ascii characters in filename #>
@Alistair1231
Alistair1231 / lostArk-anti-afk.ahk
Last active June 13, 2022 04:05
Lost Ark Anti AFK kick script | click out of the game for it to work!
#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
; icon file download
; https://mir.cr/N9HJXVGH
I_Icon = antiafk.ico
ICON [I_Icon] ;Changes a compiled script's icon (.exe)
if I_Icon <>

How to make a 1 click connect to bluetooth device button

image

making a shortcut

  • Install Bluetooth Command Line Tools
  • you can use the command line tools to display all device ids by simply running btdiscovery
  • Create a Connect batch script:
@Alistair1231
Alistair1231 / deepl.md
Last active November 2, 2021 21:06
Deepl Firefox Searchbar with Country codes

make bookmark with following content

javascript: (function (s, url = 'https://www.deepl.com/translator#___/___/___') {
    let valsRaw = s.split(" ");
    let vals = [];
    for (let i = 0; i < 2; i++) {
        vals.push(valsRaw.shift());
    }
 vals.push("");
@Alistair1231
Alistair1231 / Z_changeSaveLocation.reg
Last active July 12, 2023 12:16
run all gog setups in current folder
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com]
"DefaultPackPath"="D:\\Games\\"
@Alistair1231
Alistair1231 / _split.ps1
Created May 4, 2021 08:16
split audio files into same length parts
# Split MP3/M4A/M4B files into 5 min parts
# Known Issues:
# recursive folders don't work. seperate files I also screwed up. Just give it 1 folder, or use _splitAll.ps1 for multiple folders.
# afterwards you can search in the folder with everything (https://www.voidtools.com/support/everything/)
# like this : "D:\!!Downloads\!audiobook\" !_ to find everything without an underscore (_) which should most likely only be the
# original files and delete them
# if windows refuses to execute the scripts try something like this in an admin powershell (Win+X A):
# Set-ExecutionPolicy Unrestricted
for ($i = 0; $i -lt $args.Count; $i++) {
@Alistair1231
Alistair1231 / changeTitle.ps1
Created March 22, 2021 10:24
Change MKV Title to part of filename for all files in folder
# path to mkvpropedit
$propedit = "mkvpropedit"
# path where files are
$path="D:\!USENET\!Anime\Hunter X Hunter (2011)"
#substring vals
$skipCharacters=14
$saveCharacters=28
#example: skip 14, save 28
@Alistair1231
Alistair1231 / docker-compose.yaml
Created December 27, 2020 09:30
n.eko with m1k1o fork and nginx reverse proxy (ssl)
version: "2.0"
services:
neko:
image: m1k1o/neko:latest
restart: always
shm_size: "1gb"
ports:
- "8080:8080"
- "59000-59100:59000-59100/udp"
environment: