This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| #!/bin/sh | |
| ps -ylC httpd --sort:rss | awk '{ s += $8; } END \ | |
| { print "Average Size:", s/NR/1024, "MB,", NR, \ | |
| "servers, Total usage:", (s/NR/1024)*NR, "MB, Max Servers:", \ | |
| 6500/(s/NR/1024) }' |
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.
| import boto3 | |
| import re | |
| import collections | |
| import datetime | |
| ec = boto3.client('ec2') | |
| iam = boto3.client('iam') | |
| def lambda_handler(event, context): | |
| reservations = ec.describe_instances( |
| /// write to file | |
| var txtFile = "c:/test.txt"; | |
| var file = new File(txtFile); | |
| var str = "My string of text"; | |
| file.open("w"); // open file with write access | |
| file.writeln("First line of text"); | |
| file.writeln("Second line of text " + str); | |
| file.write(str); | |
| file.close(); |
| sudo yum -y install gcc gcc-c++ kernel-devel | |
| sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel | |
| pip install cryptography |