Skip to content

Instantly share code, notes, and snippets.

View radstevee's full-sized avatar
🐈

Nils Krüger radstevee

🐈
View GitHub Profile
@radstevee
radstevee / kotlin-syntax.md
Created April 2, 2025 06:49
Kotlin syntax cheatsheet

Kotlin Syntax Cheatsheet

This guide will help you understand kotlin's syntax.

Note that this guide does not cover any multiplatform aspects, but rather, the JVM platform. This guide also assumes that you have good knowledge of Java.

TODO:

@radstevee
radstevee / create.sh
Last active January 29, 2025 18:12
Gitlab runner creation via docker
#!/bin/bash
REGISTRATION_TOKEN="..." # Deprecated but eh
GITLAB_URL="https://gitlab.com"
container=$(docker run -d --restart always \
-v /srv/gitlab/runners/etc:/etc/gitlab-runner \
-v /var/run/docker.sock:/var/run/docker.sock \
gitlab/gitlab-runner:latest)
echo "Created container $container"
@radstevee
radstevee / mcsr-linux-reset-script.sh
Last active February 21, 2022 16:11
A MCSR resetting script for Linux
#!/bin/bash
# MCSR Reset Script for Linux
# made by radsteve.sh#8033
delay="0.020" # Delay between key presses
mcwindow=$(xdotool search --class minecraft) # Window ID from minecraft
mcwindowname=$(xdotool getwindowname "$mcwindow") # Window name from minecraft
mode="ssg" # Options: ssg and rsg
ssgseed="3294725893620991126" # If the seed contains a - please remove it. If not, remove line 51.
@radstevee
radstevee / WorldCounter.ahk
Last active January 18, 2022 08:54
Counts the world files that start with Speedrun # or New World from every open minecraft instance and displays it
; Script by Radsteve
; Forked from Specnr's MoveWorlds-Script
#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
global count := 0
global McDirectories := []
global rawPIDs := []
global instances := 0