Posts

Showing posts from January, 2026

change ssh port in ubuntu

 vi /etc/ssh/sshd_config port 1221 sudo systemctl restart ssh sudo systemctl daemon-reload sudo systemctl restart ssh.socket root@vmproc:/home/ubuntu# netstat -plunt | grep 22 tcp        0      0 0.0.0.0:1221            0.0.0.0:*               LISTEN      1/init tcp6       0      0 :::1221                 :::*                    LISTEN      1/init

nativemind chrome extension

 PS C:\Users\bum> lms server start --cors W CORS is enabled. This means any website you visit can use the LM Studio server. Success! Server is now running on port 1234 3. Enable CORS in LM Studio (Crucial)  Chrome extensions often block requests to localhost due to security restrictions (CORS).  In LM Studio, when running the server, check if there is an option to Enable CORS. If using the CLI, start the server with: lms server start --cors.  server address http://localhost:1234/v1/chat/completions

postgres sql backup

create a simple script for Linux  that will create backup for PostgreSQL USER='postgres' PASSWORD='B!XCO@2o26' and location is /usr/src/postgresql-backup/all-databases where all user database is created and one on another location /usr/src/postgresql-backup/bacula where each data base will be created  #!/bin/bash # PostgreSQL Backup Script # This script creates backups of all PostgreSQL databases # Configuration PGUSER="postgres" PGPASSWORD="B!XCO@2o26" BACKUP_DIR_ALL="/usr/src/postgresql-backup/all-databases" BACKUP_DIR_INDIVIDUAL="/usr/src/postgresql-backup/bacula" DATE=$(date +%Y%m%d_%H%M%S) RETENTION_DAYS=7 # Export password for pg_dump and pg_dumpall export PGPASSWORD="$PGPASSWORD" # Create backup directories if they don't exist mkdir -p "$BACKUP_DIR_ALL" mkdir -p "$BACKUP_DIR_INDIVIDUAL" echo "=== PostgreSQL Backup Started at $(date) ===" # Backup all databases (global backup) echo...

How to Install ModSecurity on Windows Server with OWASP Core Rule Set?

  How to Install ModSecurity on Windows Server with OWASP Core Rule Set? Complete Guide: Install ModSecurity on Windows Server with OWASP Core Rules   Introduction ModSecurity is a powerful open-source web application firewall (WAF) that helps protect your websites from various threats and attacks. This tutorial provides step-by-step instructions for installing and configuring ModSecurity on a Windows Server running Internet Information Services (IIS). By implementing ModSecurity, you’ll add an essential security layer to your web applications, helping to prevent SQL injection, cross-site scripting (XSS), and other common vulnerabilities. Step 1: Download & Install Visual C++ 2015-2022 Redistributable ModSecurity requires Microsoft Visual C++ Redistributable to function properly.   Download the latest version from  Microsoft : 🔗  https://aka.ms/vs/17/release/vc_redist.x64.exe Run the installer ( vc_redist.x64.exe)  and follow the on-screen instructions...

hestiacp phpmyadmin 404

 phpmyadmin only works with domain name or hostname not with IP with Ip 404

Plugin 'InnoDB' registration as a STORAGE ENGINE failed [ERROR] Could not open mysql.plugin table: "Table 'mysql.plugin' doesn't exist"

 Jan 04 02:15:17 linux mysqld[11469]: 2026-01-04 2:15:17 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. Jan 04 02:15:17 linux mysqld[11469]: 2026-01-04 2:15:17 0 [Note] Plugin 'FEEDBACK' is disabled. Jan 04 02:15:17 linux mysqld[11469]: 2026-01-04 2:15:17 0 [ERROR] Could not open mysql.plugin table: "Table 'mysql.plugin' doesn't exist". Some plugins may be not loaded chown -R mysql:mysql /var/lib/mysql chmod 755 /var/lib/mysql systemctl restart mysqld

connecting docker n8n and comfyui API

 This is a classic Docker-on-Windows / localhost networking situation. You have: n8n running inside Docker → exposed on host port 5679 ComfyUI running on the host → http://127.0.0.1:8000 You want n8n (inside container) to call ComfyUI using something like http://localhost:8000 That will NOT work by default , because inside Docker: localhost = the container itself , not your Windows host ✅ The Correct & Easiest Solution (Recommended) Use host.docker.internal Docker provides a special DNS name that always points to the host machine . 👉 Inside n8n (Docker), use: http: //host.docker.internal:8000 This works on: Docker Desktop (Windows ✅) Docker Desktop (Mac ✅) No subnet changes needed. API URL http://host.docker.internal:8000 worked