grandekos.com
LoK

LOK — Logic Of Kos v0.3.15

Collection of handy bash scripts for your XOS • 241 commits • dual syntax • by t3ch & OpenCode

Logic Of Kos organizes dozens of sysadmin scripts by place — ARCH CHROOT DB FW GIT NET NGINX PYTHON SYD/SYSTEMD SYS/SYSTEM VENV etc. — with PCA args, persistent config, history, symlinks and two ways to run every tool.

View on GitHub ↗ Install Guide Architecture
📂 Places
lok → lists ARCH, NET, SYD… • lok SYD → scripts in place
🔀 Dual syntax
lok SYD justtest HELP/SET/RUN vs justtest --help -a abc
🌐 Remote
lok -r server1 NET GEOIP RUN via HTTP token

Two syntaxes, same script

Every script works via the lok wrapper (with config persistence & history) and directly as a standalone binary after ./install.sh -l:

Via lok (managed)
lok
# → Logic Of Kos v0.3.15 banner + Available places: ARCH CHROOT … SYD SYS VENV

lok syd justtest help
# Available options: -a ARG1, -b ARG2
# Commands: HELP SET GET DEL VIEW CLEAR RUN HISTORY USE

lok syd justtest set ARG1=abc
# → /home/t3ch/.config/lok/live/SYD/justtest/config

lok syd justtest view
# ARG1:abc

lok syd justtest run
# history + Test complete!
Direct (standalone)
justtest --help
# same options: -a ARG1, -b ARG2

justtest -a abc
# history + Test complete!

# also: justtest -a abc -b xyz
# history logged to ~/.config/lok/history/

Config lives at ~/.config/lok/live/<PLACE>/<script>/config • History at ~/.config/lok/history/ • Symlinks via install.sh -l / -u / -L • Flags: -a all scripts, -p installed, -H all history

Quick Start & Remote

./lok.sh NET calcnipp HELP
./lok.sh NET calcnipp SET key=value && ./lok.sh NET calcnipp RUN
justtest -a abc                          # direct after install
./install.sh -l                          # link all .sh → /usr/local/bin

# remote
./src/lok-server.sh start                # creates ~/.config/lok/server_token
./lok.sh -R server1 192.168.1.10:19876 <token>
./lok.sh -r server1 SYSTEM cputemp RUN
 

Comments

0 comments