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.

52 lines
2.7 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 remote | xargs -L1 git push --all' \
  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. dcr='docker compose run' \
  29. dps="docker ps" \
  30. ds="docker stop" \
  31. paratest='docker compose exec fpm ./test' \
  32. phpunit='docker compose exec fpm ./vendor/bin/phpunit' \
  33. dm='mysql -h localhost -P 33061 --protocol=tcp -u root -psecret' \
  34. staging-mysql='mysql --host tf-codium-staging.ch66levpagqo.ap-southeast-2.rds.amazonaws.com --user=root --password=r43r34rg' \
  35. mailhog='docker run -d --restart unless-stopped -p 1025:1025 -p 8025:8025 mailhog/mailhog' \
  36. 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 ' \
  37. 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 ' \
  38. 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 ' \
  39. t12='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 ' \
  40. ducks='du -cks * | sort -rn | head' \
  41. fn="find . -name" \
  42. artisan="docker-compose exec fpm php artisan" \
  43. tinker="docker-compose exec fpm php artisan tinker" \
  44. phpunit="docker-compose exec fpm ./vendor/bin/phpunit" \
  45. jsonlint="python -m json.tool" \
  46. migseed="docker-compose exec fpm php artisan migrate --seed" \
  47. dsa="docker kill $(docker ps -q)"
  48. alias thermoview-run='docker-compose -f docker-compose.yml run desktop bash -c "/opt/local-electron.sh" ; rm -rf desktop/pulse-*'
  49. 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-*'
  50. alias refresh-strng='dce server sh -c "./based -migrate-fresh && ./based -seed && ./based -sync-stripe-products"'