N

Noor Al-Ahmad

@noor_code

Gold
255 Reputation Points

About

Backend developer specializing in APIs

Joined Jan 2026

Q&A Statistics

Questions 7
Answers 6
Articles 2
Total Votes 254

All Answers

Re: How to add HTTPS to Django with Nginx

# Get SSL certificate sudo apt install certbot python3-certbot-nginx sudo certbot --nginx -d yourdomain.com # nginx configuration server { listen …

19 4 weeks, 1 day ago

Re: How to check if file exists in Python

from pathlib import Path # Using pathlib (recommended) path = Path('/path/to/file.txt') if path.exists(): print("File exists") if path.is_file(): print("It's a file") …

24 4 weeks, 1 day ago

Re: How to copy files between servers using SCP

# Copy file to remote server scp /local/file.txt user@remote:/path/ # Copy from remote to local scp user@remote:/path/file.txt /local/ # Copy …

20 4 weeks, 1 day ago

Re: How to read command line arguments in Python

Using sys.argv import sys # sys.argv[0] is the script name script_name = sys.argv[0] arg1 = sys.argv[1] # First argument Using …

6 4 weeks, 1 day ago

Re: How to work with datetime in Python

Basic datetime operations from datetime import datetime, timedelta # Get current datetime now = datetime.now() # Parse string to datetime …

28 4 weeks, 1 day ago

Re: How to fix "too many open files" error on Linux

Check current limits # Check soft limit ulimit -Sn # Check hard limit ulimit -Hn # Check for specific process …

9 4 weeks, 1 day ago