This file contains 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
#!/bin/bash | |
apt-get install -y debconf-utils htop build-essential curl | |
# Install nginx server | |
apt-get install -y nginx | |
# Install and configure mysql server | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password admin' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password admin' |
This file contains 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
#!/bin/bash | |
# Install the Build and Test Dependencies | |
apt-get update | |
apt-get install -y curl build-essential tcl | |
# Download and Extract the Source Code | |
cd /tmp | |
curl -O http://download.redis.io/redis-stable.tar.gz | |
tar xzvf redis-stable.tar.gz |
This file contains 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
#!/bin/bash | |
USER="vagrant" | |
MYSQL_PASSWORD="admin" | |
# Update & Install Prerequisites | |
apt-get update | |
apt-get install -y debconf-utils | |
# Install nginx |
This file contains 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
[Unit] | |
Description=High-performance, schema-free document-oriented database | |
After=network.target | |
[Service] | |
User=mongodb | |
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf | |
[Install] | |
WantedBy=multi-user.target |
This file contains 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
public class IntentUtilities { | |
/** | |
* <p>Intent to open the official Facebook app. If the Facebook app is not installed then the | |
* default web browser will be used.</p> | |
* | |
* https://stackoverflow.com/questions/4810803/open-facebook-page-from-android-app | |
* | |
* <p>Example usage:</p> | |
* | |
* {@code newFacebookIntent(ctx.getPackageManager(), "https://www.facebook.com/JRummyApps");} |
OlderNewer