Skip to content

Instantly share code, notes, and snippets.

View Ayushverma8's full-sized avatar

Ayush Verma Ayushverma8

View GitHub Profile
/**
* app.js
*
* Use `app.js` to run your app without `sails lift`.
* To start the server, run: `node app.js`.
*
* This is handy in situations where the sails CLI is not relevant or useful.
*
* For example:
* => `node app.js`
@Ayushverma8
Ayushverma8 / backup-requirements.sh
Created April 6, 2018 07:41 — forked from chrislkeller/backup-requirements.sh
A couple quick bash scripts so I can keep virtualenvs somewhat consistent across machines. backup-requirements.sh exports requirements files for each virtualenv, names the files for the virtualenv and sends them to a date-versioned directory. install-requirements.sh loops through a directory of requirements files and checks to see if a virtualen…
#!/bin/bash
# grab the virtualenvwrapper settings
export WORKON_HOME=$HOME/.virtualenvs
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
# the location of your virtualenv wrapper shell script may differ
source /usr/local/share/python/virtualenvwrapper.sh
@Ayushverma8
Ayushverma8 / nginx-tuning.md
Created April 4, 2018 11:17 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

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.

@Ayushverma8
Ayushverma8 / cancer_diagnosis.ipynb
Created April 1, 2018 14:18
Major Project B.Tech
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ayushverma8
Ayushverma8 / ayush_grub.conf
Last active October 12, 2017 05:52
About Booting Process Linux
#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
@Ayushverma8
Ayushverma8 / main.py
Created August 5, 2017 14:09
Bruteforcing Chalkstreet's recruitment form
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')
@Ayushverma8
Ayushverma8 / Index.md
Last active August 3, 2017 15:37
OYO Rooms Chatbot

OYO Rooms Suggestions

I have some suggestions on how to increase Intraction with users and make hotel booking more easy via OYO !


What Problem I am solving ?

@Ayushverma8
Ayushverma8 / index.md
Last active July 31, 2017 13:47
HackerEarth Bugs

Codearena Bugs and Suggestions

I found some bugs in Codearena that could let user cheat by uploading code to ace-editor during fight . This makes fight unfair and other opponent will loose motivation to fight as ,I can win the fight in less than a minute.


How I did !

@Ayushverma8
Ayushverma8 / scratch_1.cpp
Created April 13, 2017 05:02
This is ShiftParser
#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++)
@Ayushverma8
Ayushverma8 / happy-birthday-mario.markdown
Created December 16, 2016 16:19
Happy Birthday Mario