Posts

windows 11 startup

  Quick Setup via Startup Folder Since the desktop app doesn't always appear in the standard Windows "Startup Apps" list, use this manual method:  Find the ComfyUI Shortcut : Locate the "ComfyUI" icon on your desktop that was created during installation. If you can't find it: Search for "ComfyUI" in the Start menu, right-click it, and select Open file location . Open the Startup Folder : Press Win + R on your keyboard, type shell:startup , and click OK . Add the Shortcut : Copy your ComfyUI desktop shortcut and paste it into the folder that just opened.   put nginx and comfyui

iis server window not showing only started in task bar windows 11

  In a command prompt:  C:\Windows\System32\inetsrv\Inetmgr.exe /reset This problem occurs when I open IIS Manager and when I have two monitors, and then later try to open it again over RDP with only one monitor. Using this reset command fixes it for me. This works on RDP sessions which do not preview the window from the taskbar and thus cannot perform Abhijeet's steps.

The Intel(R) Storage Middleware Service service terminated unexpectedly. It has done this 1 time(s).

Image
 The Intel(R) Storage Middleware Service service terminated unexpectedly. It has done this 1 time(s). system freeze Yes, this service terminating unexpectedly is a known cause of system freezes and crashes.  The Intel(R) Storage Middleware Service (also known as RstMwService.exe) acts as a bridge between your storage drivers and the management interface. When it fails, it can cause the following stability issues:  Complete System Hangs: The crash can interfere with the storage controller's communication with your drives, causing the entire OS to stop responding. Latency Spikes: Systems using the Intel RST VMD driver (like yours shown in Device Manager) can experience significant latency spikes and brief freezes, especially if there is a version mismatch. Sleep/Wake Failures: The service is known to crash specifically when the computer attempts to enter or wake from sleep mode. 100% Disk Usage: A malfunctioning storage service can cause SSD usage to spike to 100% while tra...

CUDA error: no kernel image is available for execution on the device

Image
 CUDA error: no kernel image is available for execution on the device fixed it by deleting environment variables in windows deleted all python paths deleted cuda paths Especially older ones with 12.4 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4 fixed it make sure you delete from both user variables and system variables

mongodb backuscript

systemctl start mongod systemctl start mongod  #Add the following line to run the backup daily at 2:00 AM: 0 2 * * * /home/sas/mongo_backup.sh #!/bin/bash # MongoDB Daily Backup Script # Place in /home/sas/mongo_backup.sh and make executable # ------------------------------ # CONFIGURATION # ------------------------------ BACKUP_DIR="/usr/src/mongodb"                # Base backup directory RETENTION_DAYS=7                             # Keep backups for 7 days MONGODUMP_CMD="mongodump"                     # Path to mongodump (if not in $PATH) LOG_FILE="/var/log/mongo_backup.log"          # Log file TIMESTAMP=$(date +"%Y%m%d_%H%M%S")            # Timestamp for this backup BACKUP_PATH="$BACKUP_DIR/$TIMESTAMP"          # Full backup path # ...

drushti copy backup

/backup_script/INDIA/ /weeklybackup/INDIA/ Your find should look like that to avoid sending directory names to sed: find ./ -type f -exec sed -i -e 's/apple/orange/g' {} \; find ./ -type f -exec sed -i -e 's/192.227.112.108/162.19.155.118/g' {} \; #!/bin/sh Date1=`date +%d-%m-%Y` T1=`date +%H-%M` rsync -avz  --password-file=/backup_script/for_144  -u  root@162.19.155.118::home/ /Backup2/INDIA/162.19.155.118/DAILY/home/ > /backup_script/INDIA/162.19.155.118/logs/home.log  2>&1 T2=`date +%H-%M` echo "START : " $T1  >> /backup_script/INDIA/162.19.155.118/logs/home.log echo "END : " $T2  >> /backup_script/INDIA/162.19.155.118/logs/home.logcd .. /backup_script/INDIA/162.19.155.118/daily-ador-vps.sh /weeklybackup/INDIA/162.19.155.118/weekly-ador-vps.sh ################Ador vps 118########################### 22 23 * * 1,2,3,4,5,6 /bin/sh /backup_script/INDIA/162.19.155.118/daily-ador-vps.sh 30 23 * * 7 /bin/sh /weeklybackup/INDIA/162.1...

mysql installed but command not found

 mysql installed but command not found export PATH=$PATH:/usr/local/mysql/bin  export PATH=$PATH:/usr/local/mysql/bin/mysqldump

enable the Slow Query Log in MySQL

 ✅ IMMEDIATE ACTIONS (DO THESE NOW) 1️⃣ Enable MySQL slow query log (VERY IMPORTANT) SET GLOBAL slow_query_log = ON; SET GLOBAL long_query_time = 1; Then watch: tail -f /var/lib/mysql/*-slow.log tail -f /var/log/mysql/mysql-slow.log This will show exact queries + which site causes them. 2️⃣ See live MySQL queries SHOW FULL PROCESSLIST;

error quic protocol error bitdefender

  Toggle Bitdefender Settings:  Open Bitdefender, go to  Protection  >  Online Threat Prevention  and try turning off "Encrypted Web Scan" or "Scan SSL" to see if the issue resolves.

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...