|
@@ -1,3 +1,5 @@
|
|
|
|
|
+export HUNGRYROOT_DIR="$HOME/src/github.com/hungryroot/hungryroot"
|
|
|
|
|
+
|
|
|
alias v="vim $*"
|
|
alias v="vim $*"
|
|
|
alias c="clear"
|
|
alias c="clear"
|
|
|
alias dj="poetry run python manage.py $*"
|
|
alias dj="poetry run python manage.py $*"
|
|
@@ -15,6 +17,7 @@ alias bookpull="rsync -aziuvhP root@rhea.local:/tank/books/ ~/.calibre/"
|
|
|
alias bookpush="rsync -aziuvhP ~/.calibre/ root@rhea.local:/tank/books/"
|
|
alias bookpush="rsync -aziuvhP ~/.calibre/ root@rhea.local:/tank/books/"
|
|
|
alias gpghup='gpgconf --kill gpg-agent && gpgconf --launch gpg-agent'
|
|
alias gpghup='gpgconf --kill gpg-agent && gpgconf --launch gpg-agent'
|
|
|
|
|
|
|
|
|
|
+# Vrobbler shortcuts
|
|
|
alias vdeploy="ssh life.unbl.ink \"rm -rf /root/vrobbler-venv/lib/python3.11/site-packages/vrobbler-0.15.4.dist-info/ && pip install git+https://code.unbl.ink/secstate/vrobbler.git@develop && systemctl restart vrobbler\""
|
|
alias vdeploy="ssh life.unbl.ink \"rm -rf /root/vrobbler-venv/lib/python3.11/site-packages/vrobbler-0.15.4.dist-info/ && pip install git+https://code.unbl.ink/secstate/vrobbler.git@develop && systemctl restart vrobbler\""
|
|
|
alias vsh="ssh life.unbl.ink vrobbler shell_plus"
|
|
alias vsh="ssh life.unbl.ink vrobbler shell_plus"
|
|
|
|
|
|
|
@@ -25,14 +28,17 @@ alias sweep_movies="sudo find /tank/videos/incoming -type f \( -iname '*.mp4' -o
|
|
|
alias clear_incoming="sudo find /tank/videos/incoming -type d -maxdepth 1 -mindepth 1 ! -name '.stfolder' -exec rm -rf {} +"
|
|
alias clear_incoming="sudo find /tank/videos/incoming -type d -maxdepth 1 -mindepth 1 ! -name '.stfolder' -exec rm -rf {} +"
|
|
|
alias lk="load_keys"
|
|
alias lk="load_keys"
|
|
|
|
|
|
|
|
-alias hrtest="~/src/github.com/hungryroot/hungryroot/manage.py test"
|
|
|
|
|
-alias h="cd ~/src/github.com/hungryroot/hungryroot"
|
|
|
|
|
-alias djrun="(cd ~/src/github.com/hungryroot/hungryroot && just django)"
|
|
|
|
|
-alias djsh="(cd ~/src/github.com/hungryroot/hungryroot && just djshell)"
|
|
|
|
|
-
|
|
|
|
|
-alias qa="(cd ~/src/github.com/hungryroot/hungryroot && just env-exec qa)"
|
|
|
|
|
-alias stage="(cd ~/src/github.com/hungryroot/hungryroot && just env-exec stage)"
|
|
|
|
|
|
|
+# Hungryroot
|
|
|
|
|
+alias hrtest="$HUNGRYROOT_DIR/manage.py test"
|
|
|
|
|
+alias hr="cd $HUNGRYROOT_DIR"
|
|
|
|
|
+alias hrdj="(cd $HUNGRYROOT_DIR && just django)"
|
|
|
|
|
+alias hrdjsh="(cd $HUNGRYROOT_DIR && just djshell)"
|
|
|
|
|
+alias hrqa="(cd $HUNGRYROOT_DIR && just ecs-exec qa)"
|
|
|
|
|
+alias hrstg="(cd $HUNGRYROOT_DIR && just ecs-exec staging)"
|
|
|
alias hrlogs="tail -f -n 50 /tmp/hungryroot-django.log"
|
|
alias hrlogs="tail -f -n 50 /tmp/hungryroot-django.log"
|
|
|
|
|
+alias hrdc="(cd $HUNGRYROOT_DIR && just docker-run)"
|
|
|
|
|
+alias hrotp="pass otp work/hungryroot/okta"
|
|
|
|
|
|
|
|
|
|
+# UTM related nonsense
|
|
|
alias toggle_ntp="sudo timedatectl set-ntp $(timedatectl show -p NTP --value | grep -q yes && echo false || echo true)"
|
|
alias toggle_ntp="sudo timedatectl set-ntp $(timedatectl show -p NTP --value | grep -q yes && echo false || echo true)"
|
|
|
alias fixtime="toggle_ntp && toggle_ntp"
|
|
alias fixtime="toggle_ntp && toggle_ntp"
|