small pixel drawing of a pufferfish dotfiles

Merge branch 'master' of gibson:j3s/dotfiles
j3s j3s@c3f.net
Fri, 06 Mar 2020 23:17:01 +0000
commit

d4510f8e5758512e5e1aaf06a0d19d2bb7cb11e7

parent

2657104ff3a7c507e6a95f6e199e6d0e83aed870

7 files changed, 48 insertions(+), 36 deletions(-)

jump to
M .profile.profile

@@ -1,4 +1,4 @@

-#!/bin/sh +export ENV=~/.shinit export PATH="$HOME/bin:$PATH" alias vi=nvim

@@ -6,7 +6,9 @@ alias startx='ssh-agent startx'

export ENV=~/.shinit -read -rp "start X?" && [ -z "$DISPLAY" ] && { +if [ "$(uname -s)" != "Darwin" ]; then + read -rp "start X?" && [ -z "$DISPLAY" ] && { export DISPLAY=:0 x -} + } +fi
A .shinit

@@ -0,0 +1,24 @@

+export PS1='$(short-pwd)$ ' +export PATH="$HOME/bin/$(hostname -s):$HOME/bin:$PATH" +export HISTFILESIZE=10000 + +export PASH_KEYID=j3s@c3f.net +export PASH_DIR="$HOME/.password-store" + +# general +alias startx='ssh-agent startx' +alias vi=vim +alias ls='CLICOLOR=1 ls' +bind '^L=clear-screen' + +# bby +if [ "$(uname -s)" == "Darwin" ]; then + alias cdr='cd $(find ~/git/chef/cloud-roles ~/git/chef/site-cookbooks ~/git/chef/app-cookbooks ~/git/chef/dc-roles -type d -maxdepth 1 | selecta)' + export HISTFILE="$HOME/.mksh-history" + export CHEFUSER="jolson" + export SSHUSER="jolson" + export SSHKEY="~/.ssh/id_rsa" + export PASH_CLIP="pbcopy" + source /usr/local/share/chruby/chruby.sh + chruby ruby-2.6.2 +fi
A bin/MACC02VK5ECHTD7/brm

@@ -0,0 +1,5 @@

+#!/bin/sh -e +# +# Remove entire berks cache & start over + +rm -f Berksfile.lock && bundle exec berks install || rm -rf ~/.berkshelf/cookbooks/ && rm -f Berksfile.lock && bundle exec berks install
M bin/MACC02VK5ECHTD7/jws-sshbin/MACC02VK5ECHTD7/jws-ssh

@@ -1,25 +1,26 @@

#!/bin/sh +# # input: us-east-1a 172.29.71.236 i-0a7eb3896d61b4d22 Krakencld-app-ASG-A running m5.large None browse_test -# ssh's to hosts listed from jws-grep output +# if > 1 argument: run the given command on each remote system and stream the output if ! [ -z "$1" ]; then - echo "This script cannot be used interactively" - exit 1 + echo "establishing connections..." + while IFS='$\n' read -r i; do + echo $i + ip=$(echo "$i" | awk '{print $2}') + ssh "$ip" "$1" + done + exit 0 fi - +# if no arguments: opens tmux panes to every remote host in list via ssh, sync panes tmux set default-shell "/bin/sh" -# tmux new-window 'sleep 0.1' +tmux new-window 'sleep 0.1' while IFS='$\n' read -r i; do ip=$(echo "$i" | awk '{print $2}') tmux split-window "ssh $ip" tmux select-layout tiled done tmux set -u default-shell -# tmux select-layout tiled -# tmux setw synchronize-panes on - -# todo? -# if one result, directly ssh -# if more than one result, do new window tmux madness - +tmux select-layout tiled +tmux setw synchronize-panes on
D bin/nostromo/pastesrv

@@ -1,4 +0,0 @@

-#!/bin/sh - -ssh c3f.net "cat > /usr/share/nginx/paste/$1" -echo "https://p.c3f.net/$1"
D bin/nostromo/taste

@@ -1,15 +0,0 @@

-#!/bin/bash - -for fgbg in $(seq 38 48) ; do # Foreground / Background - for color in $(seq 238 255) ; do # Colors - # Display the color - printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color - # Display 6 colors per lines - if [ $((($color + 1) % 6)) == 4 ] ; then - echo # New line - fi - done - echo # New line -done - -exit 0
M bin/short-pwdbin/short-pwd

@@ -3,5 +3,4 @@ #

# /s/h/o/rtness term=$(printf "$PWD" | sed -E 's|(\.?[^/])([^/]+)\/|\1/|g') - -printf "\033[01;90m$term\e[0m" +printf "\033[38;5;162m$term\e[0m"