Browse Source

feat: remove unused files

master
Tovi Jaeschke-Rogers 7 months ago
parent
commit
5b13d0fbab
10 changed files with 41 additions and 157 deletions
  1. +37
    -57
      .config/aliasrc
  2. +0
    -23
      .inputrc
  3. BIN
      .local/bin/fenc
  4. +0
    -8
      .local/bin/flask-unsign
  5. +0
    -8
      .local/bin/lock_mine
  6. +0
    -0
      .local/bin/nohup.out
  7. +0
    -8
      .local/bin/pbr
  8. +0
    -7
      .local/bin/remap-keys
  9. +0
    -43
      .xinitrc
  10. +4
    -3
      .zshrc

+ 37
- 57
.config/aliasrc View File

@ -1,70 +1,50 @@
#!/bin/sh
# gitup='git remote | xargs -L1 git push --all' \
alias \
q='exit' \
ls="ls --color=auto" \
ll="ls -G -alh" \
dd='sudo dd status=progress' \
h="history 1 | grep" \
vim='nvim' \
grep='grep --color=auto' \
p='sudo pacman' \
extip='curl -s www.icanhazip.com' \
gco='git checkout' \
gbls='git --no-pager branch -a' \
vv='nvim ~/.config/nvim/init.lua' \
vz='nvim ~/.zshrc && source ~/.zshrc' \
va='nvim ~/.config/aliasrc && source ~/.zshrc' \
sz='source ~/.zshrc' \
delorig='find . -name "*.orig" -exec rm {} \;' \
delbak='find . -name "*.bak" -exec rm {} \;' \
cpp="rsync --progress --recursive" \
sv="sudo nvim" \
c="xclip -selection clipboard" \
v="xclip -selection clipboard -o" \
lf="lfcd" \
dcu='docker compose up' \
dce='docker compose exec' \
dcr='docker compose run' \
dps="docker ps" \
ds="docker stop" \
dce-test='docker compose exec fpm ./artisan test' \
dc-phpunit='docker compose exec fpm ./vendor/bin/phpunit' \
dm='mysql -h localhost -P 33061 --protocol=tcp -u root -psecret' \
staging-mysql='mysql --host tf-codium-staging.ch66levpagqo.ap-southeast-2.rds.amazonaws.com --user=root --password=r43r34rg' \
mailhog='docker run -d --restart unless-stopped -p 1025:1025 -p 8025:8025 mailhog/mailhog' \
t12wl='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace list ' \
t12ws='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace select ' \
t12wd='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace delete ' \
t12='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 ' \
ducks='du -cks * | sort -rn | head' \
fn="find . -name" \
artisan="docker compose exec fpm php artisan" \
tinker="docker compose exec fpm php artisan tinker" \
phpunit="docker compose exec fpm ./vendor/bin/phpunit" \
paratest="docker compose exec fpm ./test" \
jsonlint="python -m json.tool" \
ts="~/.local/bin/tmux-sessionizer" \
tmux="tmux attach-session || tmux" \
fresh="docker compose exec fpm php artisan migrate:fresh --seed" \
shrug="echo '¯\\_(ツ)_/¯' | xclip -selection clipboard && echo 'Copied ASCII shrug to clipboard'" \
dab="cat ~/Documents/dab.txt | xclip -selection clipboard && echo 'Copied ASCII dab to clipboard'"
# Misc
alias q='exit'
alias ls="ls --color=auto"
alias ll="ls -G -alh"
alias vim='nvim'
alias grep='grep --color=auto'
alias vz='nvim ~/.zshrc && source ~/.zshrc'
alias va='nvim ~/.config/aliasrc && source ~/.zshrc'
alias sz='source ~/.zshrc'
alias c="xclip -selection clipboard"
alias v="xclip -selection clipboard -o"
alias lf="lfcd"
alias ducks='du -cks * | sort -rn | head'
alias \
c="xclip -selection clipboard" \
v="xclip -selection clipboard -o"
# Docker
alias dc="docker compose"
alias dcu='docker compose up'
alias dce='docker compose exec'
alias dcr='docker compose run'
alias dps="docker ps"
alias ds="docker stop"
# Docker + Laravel
alias artisan="docker compose exec fpm php artisan"
alias tinker="docker compose exec fpm php artisan tinker"
alias phpunit="docker compose exec fpm ./vendor/bin/phpunit"
alias paratest="docker compose exec fpm ./test"
alias fresh="docker compose exec fpm php artisan migrate:fresh --seed"
alias ts="~/.local/bin/tmux-sessionizer"
alias tmux="tmux attach-session || tmux"
# Clipboard
alias c="xclip -selection clipboard"
alias v="xclip -selection clipboard -o"
if [[ $(uname) == 'Darwin' ]]; then
alias \
c="pbcopy" \
v="pbpaste"
alias c="pbcopy"
alias v="pbpaste"
fi
# Jack specific
alias jack-artisan="dce app-fpm ./artisan"
alias jack-paratest="dce app-fpm ./test"
alias jack-phpunit="dce app-fpm ./vendor/bin/phpunit"
alias jack-subscription-artisan="dce subscription-fpm ./artisan"
alias jack-subscription-paratest="dce subscription-fpm ./test"
alias jack-subscription-phpunit="dce subscription-fpm ./vendor/bin/phpunit"

+ 0
- 23
.inputrc View File

@ -1,23 +0,0 @@
set completion-ignore-case on
set keymap emacs
"\C-x\C-r": re-read-init-file
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char
set keymap vi-command
"\C-x\C-r": re-read-init-file
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char
set keymap vi-insert
"\C-x\C-r": re-read-init-file
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char

BIN
.local/bin/fenc View File


+ 0
- 8
.local/bin/flask-unsign View File

@ -1,8 +0,0 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask_unsign.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

+ 0
- 8
.local/bin/lock_mine View File

@ -1,8 +0,0 @@
#!/bin/bash
if ! pgrep -x "miner" >/dev/null
then
miner --algo ethash --server eth.2miners.com:2020 --user 0x951c9c8ff6a9466536Fca8D6d5010A8Ea39c42f8.desktop &
fi
slock && pkill miner

+ 0
- 0
.local/bin/nohup.out View File


+ 0
- 8
.local/bin/pbr View File

@ -1,8 +0,0 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pbr.cmd.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

+ 0
- 7
.local/bin/remap-keys View File

@ -1,7 +0,0 @@
#!/bin/sh
xmodmap -e 'clear Lock' &
xmodmap -e 'keycode 135 = Super_R' &
xmodmap -e 'keycode 66 = Escape' &
xmodmap -e 'keycode 9 = grave' &

+ 0
- 43
.xinitrc View File

@ -1,43 +0,0 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
systemctl --user import-environment DISPLAY
# xrandr --output DVI-D-1 --off
xset r rate 200 25
sh ~/.local/bin/dwm-autostart
exec dwm

+ 4
- 3
.zshrc View File

@ -60,9 +60,6 @@ function cdf () {
cd $(find . -type d -print | fzf)
}
# Load aliases
source ~/.config/aliasrc
# Android dev config
export ANDROID_HOME="$HOME/Android/Sdk"
if [[ $(uname) == 'Darwin' ]]; then
@ -76,6 +73,10 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Load external
source ~/.config/aliasrc
source <(fzf --zsh)
eval "$(oh-my-posh init zsh --config $HOME/.config/oh-my-posh/zen.toml)"

Loading…
Cancel
Save