chore: minor random updates (#240)

* Add `tmuxp` configuration to access local `raspberry pi` cluster
* Configure editor behaviour through `editorconfig`
* Fix format for `24-bit-color` script
* Add volume for `supermaven` data
* Remove the `ANTHROPIC_API_KEY` environment variable

Reviewed-on: #240
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
João Paulo Dubas 2025-05-28 18:50:24 +00:00 committed by João Paulo Dubas
parent 4c1b09a8ab
commit d2b37ab393
4 changed files with 45 additions and 2 deletions

28
.editorconfig Normal file
View File

@ -0,0 +1,28 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[Makefile]
indent_style = tab
indent_size = 4
[*.lua]
indent_style = space
indent_size = 2
quote_style = single
[*.md]
trim_trailing_whitespace = false
max_line_length = 80
[*.sh]
indent_style = tab
indent_size = 4
[*.yml]
indent_style = space
indent_size = 2

14
config/tmuxp/rpi.yml Normal file
View File

@ -0,0 +1,14 @@
---
session_name: rpi
start_directory: /opt/personal
windows:
- window_name: rpi
focus: true
layout: tiled
start_directory: labs
panes:
- focus: true
shell_command: ssh rpi00
- shell_command: ssh rpi01
- shell_command: ssh rpi02
- shell_command: ssh rpi03

View File

@ -14,7 +14,6 @@ services:
entrypoint: sleep
command: infinity
environment:
ANTHROPIC_API_KEY: ${NVIM_ANTHROPIC_API_KEY:-no-api}
GH_TOKEN: &github_token ${NVIM_GH_TOKEN:-no-token}
GITHUB_TOKEN: *github_token
COMPOSE_BAKE: 'true'
@ -33,6 +32,7 @@ services:
- 'home_local_share:/home/coder/.local/share'
- 'home_local_state:/home/coder/.local/state'
- 'home_plugins_tmux:/home/coder/.config/tmux/plugins'
- 'home_supermaven:/home/coder/.supermaven'
chroma:
image: 'ghcr.io/chroma-core/chroma:1.0.10'
@ -52,4 +52,5 @@ volumes:
home_local_share: {}
home_local_state: {}
home_plugins_tmux: {}
home_supermaven: {}
chroma_data: {}

View File

@ -23,7 +23,7 @@ resetOutput()
# $red $green and $blue are integers
# ranging between 0 and 255 inclusive
rainbowColor()
{
{
let h=$1/43
let f=$1-43*$h
let t=$f*255/43