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
| # Download and Install the Latest Updates for the OS | |
| apt-get update && apt-get upgrade -y | |
| # Set the Server Timezone to CST | |
| echo "America/Chicago" > /etc/timezone | |
| dpkg-reconfigure -f noninteractive tzdata | |
| # Enable Ubuntu Firewall and allow SSH & MySQL Ports | |
| ufw enable | |
| ufw allow 22 |
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
| ############################################################################### | |
| # Install MySQL Server 5.7 on Ubuntu 16.04 LTS | |
| ############################################################################### | |
| # Download and Install the Latest Updates for the OS | |
| apt update && apt upgrade -y | |
| # Install MySQL Server in a Non-Interactive mode. Default root password will be "root" | |
| echo "mysql-server-5.7 mysql-server/root_password password root" | sudo debconf-set-selections | |
| echo "mysql-server-5.7 mysql-server/root_password_again password root" | sudo debconf-set-selections |
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
| /* basic usage */ | |
| ViewGroup root = (ViewGroup) findViewById(android.R.id.content); | |
| LayoutTraverser.build(new LayoutTraverser.Processor() { | |
| @Override | |
| public void process(View view) { | |
| // do stuff with the view | |
| } | |
| }).traverse(root); |