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
apt-get update | |
apt-get install ruby-dev -y | |
apt-get install ruby -y | |
apt-get install build-essential -y | |
apt-get install git -y | |
apt-get install postgresql -y | |
apt-get install postgresql-contrib -y | |
sudo -u postgres createuser -s $USER | |
createdb $USER | |
touch ~/.psql_history |
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
apt update -y | |
apt install mysql -y | |
apt install ruby -y | |
apt install git -y | |
wget http://dev.mysql.com/get/mysql-apt-config_0.8.0-1_all.deb | |
sudo dpkg -i mysql-apt-config_0.8.0-1_all.deb | |
sudo apt update -y | |
sudo apt install mysql-server -y | |
sudo apt-get install ruby-dev -y | |
apt-get install libmysqlclient-dev -y |
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
#include<string.h> | |
char a[10]; | |
int top=-1,i; | |
void error(){ | |
printf("Syntax Error"); | |
} | |
void push(char k[]) //Pushes The Set Of Characters on to the Stack | |
{ | |
for(i=0;k[i]!='\0';i++) |
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 selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
driver = webdriver.Firefox() | |
driver.get('https://www.chalkstreet.com/careers/') | |
element = driver.find_element_by_name('value') | |
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
#boot=/dev/sda | |
default=0 | |
timeout=5 | |
splashimage=(hd0,0)/boot/grub/splash.xpm.gz | |
hiddenmenu | |
title CentOS (2.6.18-194.el5PAE) | |
root (hd0,0) | |
kernel /boot/vmlinuz-2.6.18-194.el5PAE ro root=LABEL=/ | |
initrd /boot/initrd-2.6.18-194.el5PAE.img |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Moved to git repository: https://github.com/denji/nginx-tuning
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.
OlderNewer