Skip to content
Ricky
English

Search

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Links

All posts

Force file download with Nginx add_header Content-Disposition 'attachment;'; server { listen 80; server_name my.domain.com; location ~ ^.*/(?P<request_basename>[^/]+\.(mp3))$ { root /path/to/mp3/ add_header …

1 minute

Shell Script Study Notes Arithmetic operations val=`expr $a + $b` Operators Symbol Description Example ! NOT [ ! false ] -o OR [ $a -lt 20 -o $b -gt 20 ] -a AND [ $a -lt 20 -a $b -gt 20 ] = equality check [ $a …

3 minutes

Part 1: Build a Telegram Bot Step by Step Part 2: Add NLP to the Chatbot Part 3: Add New Skills to the Chatbot Python Telegram Bot Tutorial Write a Simple Telegram Bot with Python Code snippets

Fixing Disk Space Not Freed on Linux Use df -ah and du -h --max-depth=1 The total from du is far smaller than the total reported by df. When a process deletes files but keeps running, the files are not …

1 minute

設定 Haproxy 以防止 DDOS 攻擊 TCP syn flood attacks vi /etc/sysctl.conf # Protection from SYN flood net.ipv4.tcp_syncookies = 1 net.ipv4.conf.all.rp_filter = 1 net.ipv4.tcp_max_syn_backlog = 1024 Slowloris like …

4 minutes