fixing fitbit

This commit is contained in:
2023-11-30 21:05:13 +00:00
parent 9567d75cb8
commit 5d7b023166
4 changed files with 136 additions and 167 deletions

27
sops Normal file
View File

@@ -0,0 +1,27 @@
bootstrap-repos:$
mr --trust-all bootstrap /run/user/1000/secrets/mrconfig$
$
update-repos:$
cd ~/vmimages$
sops -e ~/justfile > /secrets/user_dotfiles/test$
$
$
sops-updatekeys:$
#!/usr/bin/env bash$
cd ~/vmimages$
sops updatekeys secrets/user-secrets.yaml$
sops updatekeys secrets/host-secrets.yaml$
sops updatekeys secrets/*.yaml$
$
run SERVICE: $
nomad run ~/projects/nomad/nomad_jobs/enabled/{{SERVICE}}.nomad$
purge SERVICE: $
nomad stop --purge {{SERVICE}}$
stop SERVICE: $
nomad stop ~/projects/nomad/nomad_jobs/enabled/{{SERVICE}}$
$
exec SERVICE:$
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc exec -task {{SERVICE}} -t ${ID} /bin/bash$
$
sh SERVICE:$
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc exec -task {{SERVICE}} -t ${ID} /bin/sh$