This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RCON is BAD, don't open this port! There no security for your server! | |
# Instead of this, use SSH: | |
# 1. Install on the server mcrcon by Tiiffi (https://github.com/Tiiffi/mcrcon). | |
# 2. Set environment variables as $MCRCON_HOST, $MCRCON_PORT and $MCRCON_PASS. | |
# 3. Use next script... | |
ssh $MCRCON_HOST mcrcon -H localhost -P $MCRCON_PORT -p $MCRCON_PASS $@ | |
# You also can create command alias in .bashrc: | |
alias ssh2rcon='ssh $MCRCON_HOST mcrcon -H localhost -P $MCRCON_PORT -p $MCRCON_PASS' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# pyzamrename.sh | |
# Renames files according pyzam result | |
set -e | |
input=$(pyzam --input "$@") | |
artist=$(echo "$input" | grep 'Artist:' | cut -d ':' -f 2 | cut -c 2-) | |
if [ -z "$artist" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /home/steam/.config/systemd/user/Terraria.service | |
[Unit] | |
Description=Server daemon for Terraria | |
After=network.target | |
[Service] | |
WorkingDirectory=/home/steam/Steam/steamapps/common/Terraria | |
Restart=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Configurations. | |
serviceDirectory="/usr/lib/systemd/system" | |
# Constants (do not touch). | |
menuServiceOptions="return status start stop restart enable disable exit" | |
menuGlobalOptions=$(ls $serviceDirectory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Simple SSH/SFTP manager | |
# | |
# Created: 2023.05.23 | |
# Updated: 2023.08.24 | |
# | |
# Author: Alexey Savin (LamberKeep) | |
# To run connection manager just run this file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Neverwinter Nights 1 - simple server launcher | |
# | |
# Created: 2023.05.24 | |
# Updated: 2023.06.21 | |
# | |
# Author: Alexey Savin (LamberKeep) | |
# CONFIGURATION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by LamberKeep @ December 2022 | |
import time | |
class TimeToEmoji: | |
def time2emoji(h: int, m: int): | |
"""Converts the time to an emoji clock symbol. | |
:param int h: Hours in 24-hour time format. | |
:param int m: Minutes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file braille_binary_clock.c | |
* | |
* Hexadecimal number to braille pattern conventer. Binary clock. | |
* | |
* Created: 2023-04-26 | |
* Updated: *never* | |
* | |
* @author Alexey Savin (LamberKeep) | |
*/ |