You should have python installed in your system. By default python is installed in Linux and Mac OSX. For Windows users you can install python here.
NOTE: Please install both Python2 and Python3. Linux is the recommended system.
| # top-most EditorConfig file | |
| root = true | |
| [*] | |
| indent_style = space | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
| import os | |
| basedir = os.path.abspath(os.path.dirname(__file__)) | |
| class Config(object): | |
| DEBUG = False | |
| TESTING = False | |
| CSRF_ENABLED = True | |
| SECRET_KEY = '' # os.urandom(24) |
| from flask import Flask, send_from_directory | |
| from livereload import Server | |
| app = Flask(__name__, static_url_path='/', static_folder='Views') | |
| @app.route('/bower_components/<path:path>') | |
| def send_assets(path): | |
| return send_from_directory('bower_components', path) |
| [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 |
| #!/bin/sh | |
| # Step 1 : Copy the above gist xstartup to .vns/xstartup. Remember the password you use for accessing the vncserver. Kill vncserver -> vncserver-kill :1 | |
| # Step 2 : Add the port no 5901 in your ec2 security group -> Custom TCP Rule | TCP | 5901 | 0.0.0.0/0 | |
| # Step 3 : Run tightvnc viewer, Write your public ip in remote host text box and port no. publicIp::port | |
| sudo apt-get install ubuntu-desktop | |
| sudo apt-get install vnc4server | |
| sudo apt-get install gnome-panel |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| /** | |
| space | |
| ----- | |
| Spacing between elements as multiple of 5 | |
| **/ | |