Skip to content

Instantly share code, notes, and snippets.

View aliasadidev's full-sized avatar
🏠
Working from home

Ali Asadi aliasadidev

🏠
Working from home
View GitHub Profile
@aliasadidev
aliasadidev / powershell-ci.ps1
Last active October 6, 2021 12:19
Simple PowerShell CI To Publish .NET Core (using git)
# simple ci with powershell
# log everything in git-log-file-{datetime}.log
$logFile = ".\git-log-file-$([System.Datetime]::Now.ToString("yyyy-MM-dd-HH-mm-ss")).log"
Start-Transcript -Path $logFile
# app pool name
$WORKER_SERVICE_NAME = '{App_Pool_Name}'
# app directory path
@aliasadidev
aliasadidev / nginx-tuning.md
Created September 15, 2021 10:33 — 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.

@aliasadidev
aliasadidev / index.html
Last active June 24, 2020 18:23
Horizontal line with words in the middle CSS
<div class="spliter">
<span class="left-line">
<hr>
</span>
<span class="middle">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Praesentium accusamus impedit omnis. Expedita iure voluptatum ut, maxime veritatis est architecto tempora animi similique. Harum perferendis suscipit tempora sint, hic inventore!
</span>
<span class="right-line">
<hr>
</span>