npm run dev -- --host 192.168.xxx.xxx
Wednesday, July 26, 2023
Friday, April 7, 2023
convert windows server 2012 r2 evaluation to full
How to convert Windows Server 2012 R2 Standard Evaluation into Full version 1) Open cdm as Administrator 2) Digit: DISM /online /Get-TargetEditions 3) Press Enter 4) Digit: DISM /online /Set-Edition:ServerStandard /ProductKey:DBGBW-NPF86-BJVTX-K3WKJ-MTB6V /AcceptEula 5) Press Enter and wait 6) Reboot the system Now you have converted the evaluation version into full ones. —————————————— How to convert Windows Server 2012 R2 Datacenter Evaluation into Full version 1) Open cdm as Administrator 2) Digit: DISM /online /Get-TargetEditions 3) Press Enter 4) Digit: DISM /online /Set-Edition:ServerStandard /ProductKey:Y4TGP-NPTV9-HTC2H-7MGQ3-DV4TW /AcceptEula 5) Press Enter and wait 6) Reboot the system Now you have converted the evaluation version into full ones.
Monday, April 3, 2023
DC migration
Step -1 Install new server and join to existing DC.
Step -2 Add roles (Active Directory and DNS Server)
Step- 3 Promote the new server to a domain controller
Step -4 Operation Master (Active Directory Users and Computer)
Change 3 menu
Step -5 Operation Master (Active Directory Domain and Trust)
Change 1 menu
Check in power shell - netdom query fsmo
Step - 6 regsvr32 schmmgmt.dll
Step-7 Windows+R and mmc Enter
Add "Active Directory Schema"
Step-8 Right Click -> Change Active Directory Domain Controller
Step-9 Right Click ->Operation Master -> Change
Step- 10 Active Directory Sites and Service -> Default Site Name ->NTDS Setting ->properties
uncheck - GC
Friday, November 25, 2022
Micros Cal formula
First number x second number + fourth number + sixth number.
Code is 123456
then
1 x 2 + 4 + 6 = 12
Livewire Authorization
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; class EditPost extends \Livewire\Component{ use AuthorizesRequests; public $post; public function mount(Post $post) { $this->post = $post; } public function save() { $this->authorize('update', $this->post); $this->post->update(['title' => $this->title]); }}
Saturday, November 12, 2022
Replacing line break before inserting to mysql
var input = document.getElementById("input").value;
if (!input)
{
// Null or undefined or bad input
alert("Invalid input");
}
// Replace line-breaks with "\n"
this.logData.description = input.replace(/(?:\r\n|\r|\n)/g, '\\n');
Saturday, October 15, 2022
mysql duplicate table database
CREATE TABLE new-database-name.new-table-name AS SELECT * FROM old-database.old-table-name;