Skip to content

Instantly share code, notes, and snippets.

@budiantoip
budiantoip / Calculate Processes.md
Last active November 13, 2024 07:33
Calculate Processes

Calculate processes given a specific process name

Let's start with listing the processes of a php-fpm:

ps -C php-fpm

Display the process size:

ps -C php-fpm -o rss=
@budiantoip
budiantoip / Remix Cheatsheet.md
Last active February 1, 2025 04:55
Remix Cheatsheet
@budiantoip
budiantoip / Learn ReactJS.md
Last active March 20, 2024 04:50
Learn ReactJS
@budiantoip
budiantoip / Apache Cheatsheet.md
Created August 25, 2023 04:21
Apache Cheatsheet

Limit HTTP method based on IPs

<Limit POST PUT DELETE>
 order deny,allow
 deny from all
 #allow from localhost
 #allow from 127.0.0.1
 allow from xxx.xxx.xx.xx
</Limit>
@budiantoip
budiantoip / Traefik.md
Last active August 21, 2023 03:35
Traefik

Traefik Use Cases

  • Reverse Proxy
  • API Gateway
  • Load Balancing
  • Certificate Management
  • Kubernetes Ingress

Traefik Providers

  • a provider links an infrastructure component (Orchestrator, Container Engine, Key-Value store, or File to Traefik)
  • Configure Traefik to connect to the Provider
@budiantoip
budiantoip / IP Address Inquiry.md
Created July 28, 2023 03:18
IP Address Inquiry

journalctl log files default location

/run/log/journal

How to move default location to /var/log/journal

sudo mkdir -p /var/log/journal
sudo systemd-tmpfiles --create --prefix /var/log/journal

logrotate the log file

@budiantoip
budiantoip / MySQL Installation.md
Last active July 19, 2023 09:35
MySQL Installation
@budiantoip
budiantoip / Nginx Optimization.md
Last active May 21, 2023 10:25
Nginx Optimization