Skip to content

Instantly share code, notes, and snippets.

@lessavin
lessavin / servers_controller_cli.sh
Last active September 25, 2023 16:29
Servers Controller CLI
#!/bin/sh
# Configurations.
serviceDirectory="/usr/lib/systemd/system"
# Constants (do not touch).
menuServiceOptions="return status start stop restart enable disable exit"
menuGlobalOptions=$(ls $serviceDirectory)
@lessavin
lessavin / ssh_manager.sh
Last active August 24, 2023 06:05
Simple SSH/SFTP manager
#!/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.
@lessavin
lessavin / nwn_server.sh
Last active September 29, 2023 06:15
Neverwinter Nights 1 - simple server launcher
#!/bin/sh
# Neverwinter Nights 1 - simple server launcher
#
# Created: 2023.05.24
# Updated: 2023.06.21
#
# Author: Alexey Savin (LamberKeep)
# CONFIGURATION
@lessavin
lessavin / timetoemoji.py
Last active December 10, 2022 17:37
Time to an emoji clock symbol conventer.
# 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.
@lessavin
lessavin / braille_binary_clock.c
Last active April 25, 2023 23:28
Hexadecimal number to braille pattern conventer. Binary clock. Now on C!
/**
* @file braille_binary_clock.c
*
* Hexadecimal number to braille pattern conventer. Binary clock.
*
* Created: 2023-04-26
* Updated: *never*
*
* @author Alexey Savin (LamberKeep)
*/