I hereby claim:
- I am eekfonky on github.
- I am eekfonky (https://keybase.io/eekfonky) on keybase.
- I have a public key ASCfJ_OT-fAttB3yLx97wGbSbi2LdZ-cLn8E9pMVchgVDAo
To claim this, I am signing this object:
| # All Directories | |
| sudo du -sch /* 2>/dev/null | |
| # Top 10 | |
| sudo du -sch /* 2>/dev/null | sort -rh | head -n 10 | |
| # Specific Directory | |
| sudo du -sch /<DIR>/* | sort -rh | |
| # Current Directory |
| #!/bin/bash | |
| # error handling | |
| error_handler() { | |
| echo "Error occurred in script at line: ${1}" | |
| echo "Line exited with status: ${2}" | |
| } | |
| trap 'error_handler ${LINENO} $?' ERR |
| 1. Create auth.txt file inside /etc/openvpn directory via this command: | |
| sudo gedit /etc/openvpn/auth.txt | |
| Fill it with your VPN credentials: | |
| username | |
| password | |
| Save it. | |
| 2. Then open the file which you are using to establish a connection: |
| # Here is how to remove a known host fingerprint (from known_hosts) on a Chromebook. | |
| term_.command.removeKnownHostByIndex(INDEX); | |
| # Replace INDEX with the number obviously. | |
| # To clear all the known hosts: | |
| term_.command.removeAllKnownHosts(); |
| #!/bin/bash | |
| # Check AWS credentials exist | |
| if [[ $(aws configure list | grep "*") && $? -eq 0 ]]; then | |
| echo "Please configure AWS credentials to continue..." | |
| aws configure | |
| fi |
| #!/bin/bash | |
| # .mylogin.cnf created with; | |
| # mysql_config_editor set -h localhost -G dbbkup -P 3306 -u root -p | |
| # | |
| # to workaround a bug in Docker you need to create a small script with; | |
| # /usr/bin/mysqldump --login-path=dbbkup --all-databases > mis-core-dev.sql | |
| # inside the conatiner at root | |
| # set variables |
| #!/bin/bash | |
| clear | |
| # Check AWS credentials | |
| if [[ $(aws configure list | grep "*") && $? -eq 0 ]]; then | |
| : | |
| else | |
| echo -e "\\n\\e[1mPlease configure AWS credentials to continue...\\e[0m" | |
| aws configure |
I hereby claim:
To claim this, I am signing this object: