This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo Updating the CentOS installation... | |
| yum -y update && yum -y upgrade | |
| echo Adding firewall rules for ssh/http/https... | |
| systemctl enable firewalld | |
| systemctl start firewalld | |
| firewall-cmd --add-service=ssh --permanent | |
| firewall-cmd --add-service=http --permanent | |
| firewall-cmd --add-service=https --permanent | |
| firewall-cmd --reload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| [ $EUID -ne 0 ] && echo "run as root" >&2 && exit 1 | |
| apt-get update && apt install -y dnsmasq | |
| # Create a directory where we will store our `iptables` forwarding rules. | |
| mkdir -p /etc/iptables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds my current BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax on | |
| filetype on | |
| set number | |
| highlight LineNr ctermfg=grey | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set expandtab |