/* eslint-disable */
/**
* Axios Request Wrapper
* ---------------------
* wraps arouund axios and redux
*/
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
/** | |
space | |
----- | |
Spacing between elements as multiple of 5 | |
**/ | |
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.
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/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 |
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
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) |
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
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) |
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
# top-most EditorConfig file | |
root = true | |
[*] | |
indent_style = space | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
NewerOlder