General Enhancements #2
@ -561,6 +561,17 @@
|
||||
alias scan="nmap -A -p- --script=vuln"
|
||||
alias_prod: |
|
||||
alias prod="ssh -p {{ prod_port }} {{ prod_user }}@{{ prod_host }}"
|
||||
function_clean_code: |
|
||||
function clean-code {
|
||||
echo -e "******* Android *******\n*** Build Caches ***"
|
||||
find ~/Code/android-*/app -maxdepth 1 -type d -name "build" \
|
||||
-exec du -hs {} \; -exec rm -rf {} \;
|
||||
echo -e "\n*** Gradle Caches ***"
|
||||
find ~/Code/android-*/ -maxdepth 1 -type d -name ".gradle" \
|
||||
-exec du -hs {} \; -exec rm -rf {} \;
|
||||
|
||||
echo -e "\n*** Done! ***"
|
||||
}
|
||||
|
||||
- name: General | Account Management | Users | Files | Common Variable
|
||||
set_fact:
|
||||
@ -603,6 +614,7 @@
|
||||
{{ source_docker_env }}
|
||||
{{ alias_scan }}
|
||||
{{ alias_prod }}
|
||||
{{ function_clean_code }}
|
||||
|
||||
- name: General | Account Management | Users | Files | .bashrc
|
||||
blockinfile:
|
||||
|
Loading…
x
Reference in New Issue
Block a user