my dotz
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'master' of gibson:j3s/dotfiles

+48 -36
+5 -3
.profile
··· 1 - #!/bin/sh 1 + export ENV=~/.shinit 2 2 3 3 export PATH="$HOME/bin:$PATH" 4 4 alias vi=nvim ··· 6 6 7 7 export ENV=~/.shinit 8 8 9 - read -rp "start X?" && [ -z "$DISPLAY" ] && { 9 + if [ "$(uname -s)" != "Darwin" ]; then 10 + read -rp "start X?" && [ -z "$DISPLAY" ] && { 10 11 export DISPLAY=:0 11 12 x 12 - } 13 + } 14 + fi
+24
.shinit
··· 1 + export PS1='$(short-pwd)$ ' 2 + export PATH="$HOME/bin/$(hostname -s):$HOME/bin:$PATH" 3 + export HISTFILESIZE=10000 4 + 5 + export PASH_KEYID=j3s@c3f.net 6 + export PASH_DIR="$HOME/.password-store" 7 + 8 + # general 9 + alias startx='ssh-agent startx' 10 + alias vi=vim 11 + alias ls='CLICOLOR=1 ls' 12 + bind '^L=clear-screen' 13 + 14 + # bby 15 + if [ "$(uname -s)" == "Darwin" ]; then 16 + 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)' 17 + export HISTFILE="$HOME/.mksh-history" 18 + export CHEFUSER="jolson" 19 + export SSHUSER="jolson" 20 + export SSHKEY="~/.ssh/id_rsa" 21 + export PASH_CLIP="pbcopy" 22 + source /usr/local/share/chruby/chruby.sh 23 + chruby ruby-2.6.2 24 + fi
+5
bin/MACC02VK5ECHTD7/brm
··· 1 + #!/bin/sh -e 2 + # 3 + # Remove entire berks cache & start over 4 + 5 + rm -f Berksfile.lock && bundle exec berks install || rm -rf ~/.berkshelf/cookbooks/ && rm -f Berksfile.lock && bundle exec berks install
+13 -12
bin/MACC02VK5ECHTD7/jws-ssh
··· 1 1 #!/bin/sh 2 + # 2 3 # input: us-east-1a 172.29.71.236 i-0a7eb3896d61b4d22 Krakencld-app-ASG-A running m5.large None browse_test 3 - # ssh's to hosts listed from jws-grep output 4 4 5 + # if > 1 argument: run the given command on each remote system and stream the output 5 6 if ! [ -z "$1" ]; then 6 - echo "This script cannot be used interactively" 7 - exit 1 7 + echo "establishing connections..." 8 + while IFS='$\n' read -r i; do 9 + echo $i 10 + ip=$(echo "$i" | awk '{print $2}') 11 + ssh "$ip" "$1" 12 + done 13 + exit 0 8 14 fi 9 15 10 - 16 + # if no arguments: opens tmux panes to every remote host in list via ssh, sync panes 11 17 tmux set default-shell "/bin/sh" 12 - # tmux new-window 'sleep 0.1' 18 + tmux new-window 'sleep 0.1' 13 19 while IFS='$\n' read -r i; do 14 20 ip=$(echo "$i" | awk '{print $2}') 15 21 tmux split-window "ssh $ip" 16 22 tmux select-layout tiled 17 23 done 18 24 tmux set -u default-shell 19 - # tmux select-layout tiled 20 - # tmux setw synchronize-panes on 21 - 22 - # todo? 23 - # if one result, directly ssh 24 - # if more than one result, do new window tmux madness 25 - 25 + tmux select-layout tiled 26 + tmux setw synchronize-panes on
-4
bin/nostromo/pastesrv
··· 1 - #!/bin/sh 2 - 3 - ssh c3f.net "cat > /usr/share/nginx/paste/$1" 4 - echo "https://p.c3f.net/$1"
-15
bin/nostromo/taste
··· 1 - #!/bin/bash 2 - 3 - for fgbg in $(seq 38 48) ; do # Foreground / Background 4 - for color in $(seq 238 255) ; do # Colors 5 - # Display the color 6 - printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color 7 - # Display 6 colors per lines 8 - if [ $((($color + 1) % 6)) == 4 ] ; then 9 - echo # New line 10 - fi 11 - done 12 - echo # New line 13 - done 14 - 15 - exit 0
+1 -2
bin/short-pwd
··· 3 3 # /s/h/o/rtness 4 4 5 5 term=$(printf "$PWD" | sed -E 's|(\.?[^/])([^/]+)\/|\1/|g') 6 - 7 - printf "\033[01;90m$term\e[0m" 6 + printf "\033[38;5;162m$term\e[0m"