my dotz
0

Configure Feed

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

big refactor

+54 -111
-18
.config/fish/MACC02VK5ECHTD7.fish
··· 1 - set -x PATH ~/.rvm/bin $PATH 2 - 3 - # env vars 4 - export CHEFUSER="jolson" 5 - export SSHUSER="jolson" 6 - export SSHKEY="~/.ssh/id_rsa" 7 - 8 - # aliases 9 - alias cdr='cd (find ~/git/chef/cloud-roles ~/git/chef/site-cookbooks ~/git/chef/app-cookbooks -type d -maxdepth 1 | selecta)' 10 - alias ls='gls --color' 11 - alias tar=gtar 12 - alias sed=gsed 13 - alias be='bundle exec' 14 - alias brm='rm -rf ~/.berkshelf/cookbooks/ && rm -f Berksfile.lock && be berks install' 15 - alias tr=gtr 16 - 17 - # load rvm 18 - rvm default
-19
.config/fish/config.fish
··· 1 - #!/usr/bin/env fish 2 - set fish_greeting 3 - 4 - set -gx EDITOR vim 5 - set -gx LANG en_US.UTF-8 6 - set -gx LD_LIBRARY_PATH /usr/local/lib/:/usr/lib/ 7 - 8 - set -gx PATH ~/bin/(hostname) ~/bin /usr/local/bin /usr/bin /bin /sbin /usr/sbin 9 - set -gx PATH $PATH ~/.local/share/go/bin 10 - 11 - set -gx GOPATH ~/.local/share/go/ 12 - 13 - function fish_prompt 14 - printf (~/bin/short-pwd) 15 - echo '$ ' 16 - end 17 - 18 - alias vi=vim 19 - source ~/.config/fish/(hostname).fish
-40
.config/fish/functions/rvm.fish
··· 1 - function rvm --description='Ruby enVironment Manager' 2 - # run RVM and capture the resulting environment 3 - set --local env_file (mktemp -t rvm.fish.XXXXXXXXXX) 4 - # This finds where RVM's root directory is and sources scripts/rvm from within it. Then loads RVM in a clean environment and dumps the environment variables it generates out for us to use. 5 - bash -c 'PATH=$GEM_HOME/bin:$PATH;RVMA='~/.rvm/bin/rvm';source $(echo $RVMA | sed "s/\/bin\//\/scripts\//"); rvm "$@"; status=$?; env > "$0"; exit $status' $env_file $argv 6 - 7 - # apply rvm_* and *PATH variables from the captured environment 8 - and eval (grep -E '^rvm|^PATH|^GEM_PATH|^GEM_HOME' $env_file | grep -v '_clr=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//') 9 - # needed under fish >= 2.2.0 10 - and set -xg GEM_PATH (echo $GEM_PATH | sed 's/ /:/g') 11 - 12 - # clean up 13 - rm -f $env_file 14 - end 15 - 16 - function __handle_rvmrc_stuff --on-variable PWD 17 - # Source a .rvmrc file in a directory after changing to it, if it exists. 18 - # To disable this feature, set rvm_project_rvmrc=0 in $HOME/.rvmrc 19 - if test "$rvm_project_rvmrc" != 0 20 - set -l cwd $PWD 21 - while true 22 - if contains $cwd "" $HOME "/" 23 - if test "$rvm_project_rvmrc_default" = 1 24 - rvm default 1>/dev/null 2>&1 25 - end 26 - break 27 - else 28 - if test -e .rvmrc -o -e .ruby-version -o -e .ruby-gemset -o -e Gemfile 29 - eval "rvm reload" > /dev/null 30 - eval "rvm rvmrc load" >/dev/null 31 - break 32 - else 33 - set cwd (dirname "$cwd") 34 - end 35 - end 36 - end 37 - 38 - set -e cwd 39 - end 40 - end
.config/fish/hannah.fish

This is a binary file and will not be displayed.

.config/fish/nostromo.fish

This is a binary file and will not be displayed.

+8
.profile
··· 1 + export ENV=~/.shinit 2 + 3 + if [ "$(uname -s)" != "Darwin" ]; then 4 + read -rp "start X?" && [ -z "$DISPLAY" ] && { 5 + export DISPLAY=:0 6 + x 7 + } 8 + fi
+24
.shinit
··· 1 + export PS1='$(short-pwd)$ ' 2 + export PATH="$HOME/bin/$(hostname -s):$HOME/bin:$PATH" 3 + export HISTFILE="$HOME/.mksh-history" 4 + export HISTFILESIZE=10000 5 + 6 + export PASH_KEYID=j3s@c3f.net 7 + export PASH_DIR="$HOME/.password-store" 8 + 9 + # general 10 + alias startx='ssh-agent startx' 11 + alias vi=nvim 12 + alias ls='CLICOLOR=1 ls' 13 + bind '^L=clear-screen' 14 + 15 + # bby 16 + if [ "$(uname -s)" == "Darwin" ]; then 17 + 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)' 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
+4 -3
bin/short-pwd
··· 1 - #!/bin/sh 1 + #!/bin/sh -e 2 + # 3 + # make a lil pink prompt 2 4 3 5 term=$(printf "$PWD" | sed -E 's|(\.?[^/])([^/]+)\/|\1/|g') 4 - 5 - printf "\033[01;90m$term\e[0m" 6 + printf "\033[38;5;162m$term\e[0m"