Rocky 9 – Apache Server Multiple Site Setup

What you’ll need Rocky 9 Installation  Install Apache Add extra directories Configuration The site configuration Configuration https using an SSL/TLS certificate Placement of the SSL/TLS keys and certificates¶ The site configuration - https Taking it live Migrating from old server to new another SAMBA Configuration What you’ll need A server running Rocky 9 Linux Know the vi text editor, here's a handy tutorial. Basic knowledge of installing and running web…

VMWare – Delete inacessible datastore

Rename the store Use the web client to rename each store and a DEL in front of the name Access the shell of the appliance server and then the database VMware vCenter Server 8.0.2.00300 Type: vCenter Server with an embedded Platform Services Controller Connected to service * List APIs: "help api list" * List Plugins: "help pi list" * Launch BASH: "shell" Command> shell Shell access is granted to root…

Linux Bag Of Tricks

Introduction This document has many useful command. Linux Set Time Examples You can also simplify format using following syntax: date +%Y%m%d -s "20081128" To set time use the following syntax: date +%T -s "10:13:13" Use the following syntax to set new data and time: date --set="STRING" For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user: date -s "2 OCT 2006 18:00:00" OR…

MySQL Bag Of Tricks

Introduction This document has many useful command. MySql Kill users You can use the following syntax to lookup users within a database SHOW PROCESSLIST; SELECT group_concat(concat('KILL ',id,';') SEPARATOR ' \n') FROM information_schema.processlist WHERE `db` LIKE 'ashe%' AND `user` ='kiwilive'; Then cut and paste into a query window

LVM Resize – How to Decrease an LVM Partition

Note: In this example we are working in CentOS 7, some commands may differ in different Linux distributions. As of CentOS 7 the default file system is XFS which is not currently possible to shrink, this example is working with the ext4 file system. In this example we will work through shrinking logical volume /var/centos/var from 10GB to 5GB. Overview of Logical Volume Manager (LVM) Before working through the resizing…

Increase the size of a Linux LVM

This will cover how to increase the disk space for a VMware virtual machine running Linux that is using logical volume manager (LVM). Firstly we will be increasing the size of the actual disk on the VMware virtual machine, so at the hardware level – this is the VM’s .vmdk file. Once this is complete we will get into the virtual machine and make the necessary changes through the operating…

How To Fix DISM Source Files Could Not Be Found In Windows 10

The DISM command “DISM / Online / Cleanup-Image / Restore Health” can be performed successfully in normal cases to repair your Windows System Image. However, some users said their DISM failed and they receive the DISM source files could not be found error message. What’s the problem with that? How to fix the issue yourself? What is DISM? DISM refers to DISM.exe, which is a command-line tool that can be…

Windows Logon Service

The logon process for how a system connects to a DC is pretty striaghtforward (read: Simple, but not easy) Workstation comes online and queries DNS SRV records to find all DCs Workstation attempts LDAP connection to ALL DCs found. Workstation queries DNS for site information. Workstation compares site information received with its own network ID. Workstation attempts LDAP connection to all DCs in its site If no DCs in its…

Create Database Table from Code

declare @TableName sysname = 'TableName' declare @Result varchar(max) = 'public class ' + @TableName + ' {' select @Result = @Result + ' public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } ' from ( select replace(col.name, ' ', '_') ColumnName, column_id ColumnId, case typ.name when 'bigint' then 'long' when 'binary' then 'byte[]' when 'bit' then 'bool' when 'char' then 'string' when…

Windows 10-11 Repair

Crashing Error SFC /SCANNOW DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-image /RestoreHealth