Skip to content

Instantly share code, notes, and snippets.

@budiantoip
budiantoip / tcping installation on mac.md
Created May 19, 2023 18:17
tcping installation on mac
wget https://github.com/paradiseduo/tcping/releases/download/3.6/tcping.zip
unzip tcping.zip
chmod +x tcping
mv tcping /usr/local/bin/
sudo xattr -rd com.apple.quarantine /usr/local/bin/tcping
@budiantoip
budiantoip / Apache Bench Cheatsheet.md
Last active May 19, 2023 17:33
Apache Bench Cheatsheet

ab -n 100 -c 100 https://domain.com

-n requests

Number of requests to perform for the benchmarking session. The default is to just perform a single request which usually leads to non-representative benchmarking results.

-c concurrency

Number of multiple requests to perform at a time. Default is one request at a time.

Reference:

@budiantoip
budiantoip / curl cheatsheet.md
Created May 19, 2023 16:47
curl cheatsheet

curl --head https://domain.com

-I/--head (HTTP/FTP/FILE) Fetch the HTTP-header only! HTTP-servers feature the command HEAD which this uses to get nothing but the header of a document. When used on a FTP or FILE file, curl displays the file size and last modification time only.


-s/--silent

Silent or quiet mode. Don't show progress meter or error messages. Makes Curl mute.

@budiantoip
budiantoip / Nginx timeout variables.md
Last active May 20, 2023 03:08
Nginx timeout variables

Nginx timeout variables

  • client_body_timeout
  • send_timeout
  • keepalive_timeout
  • lingering_timeout
  • resolver_timeout

NGINX Backend Timeouts

  • proxy_connect_timeout
@budiantoip
budiantoip / Certbot.md
Last active May 11, 2023 02:17
Certbot
@budiantoip
budiantoip / Exim Cheatsheet.md
Last active August 20, 2023 12:44
Exim Cheatsheet
@budiantoip
budiantoip / Clean up RAM usage on linux.md
Created May 5, 2023 08:18
Clean up RAM usage on linux