Skip to content

Instantly share code, notes, and snippets.

View shahriyardx's full-sized avatar
🎯
Fallen in love with Python

Md Shahriyar Alam shahriyardx

🎯
Fallen in love with Python
View GitHub Profile
@shahriyardx
shahriyardx / nginx-tuning.md
Created February 26, 2023 12:14 — 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.

@shahriyardx
shahriyardx / nginx-tuning.md
Created February 26, 2023 12:14 — 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.

@shahriyardx
shahriyardx / topgg.css
Last active February 11, 2022 04:36
Top gg bot page customization css
.titleandvote > a:first-child > .votebutton{
background: #80d8fc;
color: #2d3436;
animation: animateHeart 1.2s infinite;
}
.titleandvote > a:nth-child(2) > .votebutton{
background: #80d8fc;
color: #2d3436;
}
@commands.command()
@commands.cooldown(1,30, commands.BucketType.user)
async def pixabay(self, ctx,cou:int,*,query):
sg = self.client.get_guild(700374484955299900)
nextbtn = discord.utils.get(sg.emojis, name="ignext")
prevbtn = discord.utils.get(sg.emojis, name="igprev")
skipf = discord.utils.get(sg.emojis, name="igskipf")
skipb = discord.utils.get(sg.emojis, name="igskipb")
beg = discord.utils.get(sg.emojis, name="igbeg")