You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.6 KiB

  1. #!/bin/sh
  2. alias \
  3. q='exit' \
  4. ls="ls --color=auto" \
  5. ll="ls -G -alh" \
  6. dd='sudo dd status=progress' \
  7. h="history 1 | grep" \
  8. vim='nvim' \
  9. grep='grep --color=auto' \
  10. p='sudo pacman' \
  11. extip='curl -s www.icanhazip.com' \
  12. gitup='git push origin $(git rev-parse --abbrev-ref HEAD)' \
  13. gco='git checkout' \
  14. gbls='git --no-pager branch -a' \
  15. vv='nvim ~/.config/nvim/init.lua' \
  16. vz='nvim ~/.zshrc && source ~/.zshrc' \
  17. va='nvim ~/.config/aliasrc && source ~/.zshrc' \
  18. sz='source ~/.zshrc' \
  19. delorig='find . -name "*.orig" -exec rm {} \;' \
  20. delbak='find . -name "*.bak" -exec rm {} \;' \
  21. cpp="rsync --progress --recursive" \
  22. sv="sudo nvim" \
  23. c="xclip -selection clipboard" \
  24. v="xclip -selection clipboard -o" \
  25. lf="lfcd" \
  26. dcu='docker-compose up' \
  27. dce='docker-compose exec' \
  28. dps="docker ps" \
  29. ds="docker stop" \
  30. dce-test='docker-compose exec fpm ./artisan test' \
  31. dc-phpunit='docker-compose exec fpm ./vendor/bin/phpunit' \
  32. dm='mysql -h localhost -P 33061 --protocol=tcp -u root -psecret' \
  33. staging-mysql='mysql --host tf-codium-staging.ch66levpagqo.ap-southeast-2.rds.amazonaws.com --user=root --password=r43r34rg' \
  34. mailhog='docker run -d --restart unless-stopped -p 1025:1025 -p 8025:8025 mailhog/mailhog' \
  35. 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 ' \
  36. 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 ' \
  37. 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 ' \
  38. t12='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 ' \
  39. ducks='du -cks * | sort -rn | head' \
  40. fn="find . -name" \
  41. artisan="docker-compose exec fpm php artisan" \
  42. tinker="docker-compose exec fpm php artisan tinker" \
  43. phpunit="docker-compose exec fpm ./vendor/bin/phpunit" \
  44. jsonlint="python -m json.tool" \
  45. migseed="docker-compose exec fpm php artisan migrate --seed" \
  46. dsa="docker kill $(docker ps -q)"
  47. alias thermoview-run='docker-compose -f docker-compose.yml run desktop bash -c "/opt/local-electron.sh" ; rm -rf desktop/pulse-*'
  48. alias thermoview-build-run='dce node gulp && docker-compose -f docker-compose.yml run desktop bash -c "/opt/build/build-local.sh && /opt/local-electron.sh" ; rm -rf desktop/pulse-*'