Skip to content

Instantly share code, notes, and snippets.

View Alistair1231's full-sized avatar

Alistair1231 Alistair1231

View GitHub Profile
@Alistair1231
Alistair1231 / functions.md
Created December 2, 2021 08:33
speedcrunch functions

‎‎​

@Alistair1231
Alistair1231 / eth-ethermine.bat
Created December 1, 2021 09:53
t-rex 3060 lhr settings
D:\Programs\t-rex-0.24.7-win\t-rex.exe --pl 60 --cclock 0 --mclock 1300 -a ethash --lhr-tune 74 --lhr-autotune-mode "off" -o stratum+tcp://eu1.ethermine.org:4444 -u 0xF86BED0c4eeE8CCA329Af01f798B2C9DB421Ef9d -p x -w rig0 --api-key bwAAAAAAAADfX0JBE+qw3yaPWoTpXvE2wvs7KmzvjokDHrg0wGmFjSlvXCsu3D29jHk1Gbzt7LpvZviXnZHkq6zDfDRoJEde0s97u41N+R4=
pause
@Alistair1231
Alistair1231 / 0binExpire.user.js
Last active May 11, 2022 14:27
My Userscripts
// ==UserScript==
// @name 0bin.net auto-select never expire
// @namespace https://greasyfork.org/en/users/12725-alistair1231
// @version 0.1
// @description auto selects never expire when making a paste
// @author Alistair1231
// @match https://0bin.net/
// @grant none
// @downloadURL https://gist.github.com/Auncaughbove17/1efc6138988425c938e6289736ada85d/raw/0binExpire.user.js
// @license GPL-3.0
@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 / mangaupdatesSearch.md
Last active October 15, 2021 15:50
mangaupdates.com search shortcut firefox

Make MangaUpdates searches via your address bar

  • Save this as bookmark
  • picture 1
  • use like this
  • picture 2
  • enjoy!
  • picture 3
@Alistair1231
Alistair1231 / newNoteFile.ps1
Created September 1, 2021 07:56
Create a new note file for current class
$dateShort=$(Get-Date -F "yyyyMMdd")
$dateLong=$(Get-Date -F "dd.MM.yyyy")
$folderName=$(split-path -leaf $(get-location))
new-item -path . -name "$folderName-$dateShort-notes.md"-ItemType "file" -Value "# $folderName Notes: $dateLong`r`n"
@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: