Skip to content

Instantly share code, notes, and snippets.

View linuxmalaysia's full-sized avatar
🏠
Working from home

Harisfazillah Jamel linuxmalaysia

🏠
Working from home
View GitHub Profile
@linuxmalaysia
linuxmalaysia / Mini UbuCon Malaysia 2025 Share Your Voice Shape the Future.md
Last active July 27, 2025 22:58
Mini UbuCon Malaysia 2025 Share Your Voice Shape the Future. As Ubuntu and open source communities continue to grow, this event aims to bring together passionate developers, technologists, and enthusiasts from across Malaysia.

🚀 Mini UbuCon Malaysia 2025: Share Your Voice, Shape the Future! 🐧

We’re thrilled to announce that planning for Mini UbuCon Malaysia 2025 is officially in motion! As Ubuntu and open source communities continue to grow, this event aims to bring together passionate developers, technologists, and enthusiasts from across Malaysia.

🔗 Fill in our Community Survey
Have a say in shaping the agenda, format, and topics for Mini UbuCon 2025:
👉 https://form.ubuntu.my/2025/ubucon/

💡 Why Your Input Matters
Mini UbuCon is built by the community, for the community. Whether you’re excited to attend, want to propose a talk, or simply have ideas on what we should cover — we want to hear from you:

@linuxmalaysia
linuxmalaysia / Percona PostgreSQL Cluster Operations: A Public Guide to Management, Minor Upgrades, Performance Tuning, and Troubleshooting.md
Created July 27, 2025 22:31
This comprehensive guide details the procedures for managing and performing a minor version upgrade of a Percona Distribution for PostgreSQL cluster, which is orchestrated by Patroni and relies on etcd for distributed consensus. This document also includes an explanation of key diagnostic outputs for cluster monitoring. All sensitive information…
@linuxmalaysia
linuxmalaysia / Granular-System-Monitoring-with-sysstat-on-AlmaLinux-9.md
Created July 25, 2025 15:11
Granular System Monitoring with sysstat on AlmaLinux 9

🛠️ How-To: Granular System Monitoring with sysstat on AlmaLinux 9

🎯 Objective

Deploy sysstat to collect system performance data every 60 seconds, enabling real-time visibility and historical analysis.


1. 🔧 Install sysstat

@linuxmalaysia
linuxmalaysia / es_ingestion_monitor.sh
Last active July 11, 2025 13:20
script for es_ingestion_monitor.sh
#!/bin/bash
# Configuration
ES_HOST="https://your-es-cluster.example.com:9200" # Your Elasticsearch host, IP address and port (e.g., "https://127.0.0.1:9200" or "https://<cloud_id>.es.<region>.gcp.cloud.es.io:9243")
# ES_USER="elastic" # If using username/password, uncomment and replace with your username
# ES_PASS="your-elastic-password" # If using username/password, uncomment and replace with your password
ES_TOKEN="your-generated-service-account-token" # If using a service account token, uncomment and replace with your token value
INTERVAL_SECONDS=10 # How often to check and calculate (e.g., 10 seconds)
# --- Authentication Header Setup ---
@linuxmalaysia
linuxmalaysia / php-fpm-slowlog.sh
Last active July 9, 2025 22:51
this script automates the process of sifting through potentially large slow log files to provide actionable insights into your PHP application's performance bottlenecks over time.
#!/bin/bash
# Define the path to your PHP-FPM slow log file
LOG_FILE="/var/log/www.log.slow"
# Check if the log file exists
if [ ! -f "$LOG_FILE" ]; then
echo "Error: Log file '$LOG_FILE' not found."
exit 1
fi

To help you craft a prompt for deep self-research across public information sources or AI knowledge bases, here's a structured approach and guidance on the details to include.

Your Self-Research Prompt Template

"Please conduct a comprehensive deep-dive research on [Your Full Name]. Focus on gathering publicly available information across various online platforms, historical records (if applicable and public), and any associated data within your knowledge base.

Prioritize information that reveals:
1.  **Professional Presence:** Roles, companies, projects, publications, presentations, patents, open-source contributions, and any publicly recognized achievements.
2.  **Academic Background:** Educational institutions, degrees, notable academic projects, research papers, or certifications.
# --- General System Resource Limits ---
# Increase the maximum number of memory map areas a process may have.
# This helps prevent out-of-memory errors for applications like Nginx that handle many connections,
# each potentially requiring its own memory mappings. Your value of 262144 is well-suited.
vm.max_map_count = 262144
# Increase the maximum number of file handles available system-wide.
# Nginx, especially as a reverse proxy or load balancer, opens a large number of file descriptors
# for incoming client connections, outgoing backend connections, log files, and cached content.
# Generated by nginxconfig.io
# See nginxconfig.txt for the configuration share link
# Note in comments by Harisfazillah Jamel and Google Gemini
# 15 Jun 2025
user www-data;
pid /run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 65535;
@linuxmalaysia
linuxmalaysia / contoh-nginx.conf
Created June 3, 2025 04:59
contoh nginx http2 port 80 not redirect
# Global Rate Limiting Settings
# These settings define how Nginx will manage the rate of incoming requests across all services.
# 'warn' log level means only significant events (like requests being limited) are logged.
# The 'global' zone tracks requests based on client IP, allowing 10 requests per second.
limit_req_log_level warn;
limit_req_zone $binary_remote_addr zone=global:10m rate=10r/s;
# --- HTTP Traffic Handler (Port 80) ---
# This section defines how Nginx processes standard, unencrypted web requests on port 80.
# It's intended for traffic forwarded by a load balancer, potentially after SSL termination.
@linuxmalaysia
linuxmalaysia / download-manifest-esagent.sh
Last active May 22, 2025 09:14
Script for Endpoint Security manifest download and version check
#!/bin/bash
### Script for Endpoint Security manifest download and version check
### This script is extracted from the main Elastic Stack Airgap Installation script.
### Created with Google Gemini
### Internal repo kepada Elastic Fleet.
### use with own risks
### buat directory ini bawah html /usr/share/nginx/html
### Added Manifest - 20250522
### Ubuntu / Debian - apt install nginx