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
@AbstractUmbra
AbstractUmbra / 00-deprecation.md
Last active November 13, 2024 13:01
discord.py 2.0+ slash command info and examples

This gist has now been 'deprecated' and has moved...

... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.

@InterStella0
InterStella0 / HelpCommand_walkthrough_guide.md
Last active September 6, 2024 19:17
Walkthrough guide on subclassing HelpCommand
@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;
}
@denji
denji / nginx-tuning.md
Last active November 5, 2024 10:10
NGINX tuning for best performance

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.