Skip to content

Instantly share code, notes, and snippets.

@budiantoip
budiantoip / Learn ReactJS.md
Last active March 20, 2024 04:50
Learn ReactJS
@budiantoip
budiantoip / How to update CA certificates.md
Last active March 1, 2024 01:38
How to update CA certificates

Ubuntu:

  • Copy the cert files to /etc/ssl/certs
  • Run update-ca-certificates

CentOS:

  1. Run update-ca-trust force-enable
  2. Copy CA certificate files to /etc/pki/ca-trust/source/anchors
  3. Run update-ca-trust
  4. Restart any web engine service
@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
@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