small pixel drawing of a pufferfish dotfiles

Correct some slowness
j3s j3s@cyberia.club
Tue, 17 Dec 2019 14:54:10 -0600
commit

f422c4f3f105bd037abf2c28ed9e44206766db68

parent

bf19229fd0b5c97e473c4bdf1277694c93e408ba

2 files changed, 22 insertions(+), 4 deletions(-)

jump to
M bin/MACC02VK5ECHTD7/jbin/MACC02VK5ECHTD7/j

@@ -1,6 +1,22 @@

#!/bin/sh - query="$1" shift 2> /dev/null -ip=$(awless list instances --filter state=running,name="$query" "$@" --format json | jq -r '.[] | [.PrivateIP] | .[]' | head -n1) + +text=$( + printf "$*" | \ + sed -e 's/bpe/-p browse_prod -r us-east-1/g' | \ + sed -e 's/bpw/-p browse_prod -r us-west-2/g' | \ + sed -e 's/bse/-p browse_stage -r us-east-1/g' | \ + sed -e 's/bsw/-p browse_stage -r us-west-2/g' | \ + sed -e 's/bte/-p browse_test -r us-east-1/g' | \ + sed -e 's/btw/-p browse_test -r us-west-2/g' | \ + sed -e 's/cpe/-p cgraph_prod -r us-east-1/g' | \ + sed -e 's/cpw/-p cgraph_prod -r us-west-2/g' | \ + sed -e 's/cse/-p cgraph_stage -r us-east-1/g' | \ + sed -e 's/csw/-p cgraph_stage -r us-west-2/g' | \ + sed -e 's/cte/-p cgraph_test -r us-east-1/g' | \ + sed -e 's/ctw/-p cgraph_test -r us-west-2/g' +) + +ip=$(awless --local list instances --filter state=running,name="$query" $text --format json | jq -r '.[] | [.PrivateIP] | .[]' | head -n1) /usr/local/bin/ssh "$ip"
M bin/MACC02VK5ECHTD7/jmassbin/MACC02VK5ECHTD7/jmass

@@ -20,11 +20,13 @@ )

ips=$(awless list instances --filter state=running,name="$query" $text --format json | jq -r '.[] | [.PrivateIP] | .[]') -tmux new-window 'ssh-trash-test' +tmux set default-shell "/bin/sh" +tmux new-window 'sleep 0.1' while IFS= read -r i do tmux split-window "ssh $i" - tmux select-layout tiled done <<< "$ips" +tmux set -u default-shell +tmux select-layout tiled tmux setw synchronize-panes on