|
Download sys/sys-0016.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 2.38 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/sys/sys-0016.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/sys/sys-0016.jsonl
-
curl -L -o sys-0016.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/sys/sys-0016.jsonl
2.38 kB
| {"type": "session", "harness": "deepseek-harness", "id": "sys-0016", "name": "Nginx configuration"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} | |
| {"type": "message", "message": {"role": "user", "content": "How do I configure Nginx as a reverse proxy?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "```nginx\n# /etc/nginx/sites-available/myapp\nupstream backend {\n least_conn;\n server 127.0.0.1:3000;\n server 127.0.0.1:3001;\n keepalive 32;\n}\n\nserver {\n listen 80;\n server_name myapp.example.com;\n return 301 https://$server_name$request_uri;\n}\n\nserver {\n listen 443 ssl http2;\n server_name myapp.example.com;\n\n ssl_certificate /etc/letsencrypt/live/myapp.example.com/fullchain.pem;\n ssl_certificate_key /etc/letsencrypt/live/myapp.example.com/privkey.pem;\n ssl_protocols TLSv1.2 TLSv1.3;\n\n # Security headers\n add_header X-Frame-Options \"SAMEORIGIN\" always;\n add_header X-Content-Type-Options \"nosniff\" always;\n add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;\n\n # Rate limiting\n limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;\n\n location /api/ {\n limit_req zone=api burst=20 nodelay;\n proxy_pass http://backend;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Proto $scheme;\n proxy_connect_timeout 5s;\n proxy_read_timeout 60s;\n }\n\n location /static/ {\n alias /var/www/static/;\n expires 30d;\n add_header Cache-Control \"public, immutable\";\n }\n\n location / {\n root /var/www/html;\n try_files $uri $uri/ /index.html;\n }\n\n # Gzip\n gzip on;\n gzip_types text/plain application/json application/javascript text/css;\n}\n```\n\n```bash\nnginx -t\nnginx -s reload\nnginx -s stop\n```"}} | |