Skip to content

Instantly share code, notes, and snippets.

@CraftedRO
CraftedRO / windows_activation.md
Created May 31, 2024 23:53
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

How to Reset All Group Policy Settings
Open PowerShell or the Command Prompt as Administrator.
Type in the following three lines, pressing Enter after each:
RD /S /Q "%WinDir%System32GroupPolicyUsers"
RD /S /Q "%WinDir%System32GroupPolicy"
gpupdate /force

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@CraftedRO
CraftedRO / .htaccess
Created March 12, 2024 18:26 — forked from kousherAlam/.htaccess
CI: Simple .htaccess using mod_rewrite for CodeIgniter
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
###################################################################################################
# ANTICHEAT
#
# Anticheat.Enable
# Description: Enables or disables the Anticheat System functionality
# Default: 1 - (Enabled)
# 0 - (Disabled)
Anticheat.Enable = 1
@CraftedRO
CraftedRO / gist:a3e408b284d5262f32e29d4370472572
Created November 13, 2023 13:32
passive_anticheat crash
Revision: TrinityCore rev. a1eec3d75279+ 2023-11-13 01:10:01 +0000 (3.3.5-passive_anticheat branch) (Win64, RelWithDebInfo, Static)
Date 13:11:2023. Time 15:22
//=====================================================
*** Hardware ***
Processor: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Number Of Processors: 8
Physical Memory: 16702408 KB (Available: 9298460 KB)
Commit Charge Limit: 17750984 KB
*** Operation System ***
@CraftedRO
CraftedRO / hosts
Created October 31, 2023 21:51
Original hosts file for Windows located at c:\Windows\System32\Drivers\etc\hosts.
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
02:47:55.150: CPU Name: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
02:47:55.150: CPU Speed: 3408MHz
02:47:55.150: Physical Cores: 4, Logical Cores: 8
02:47:55.150: Physical Memory: 16327MB Total, 12577MB Free
02:47:55.150: Windows Version: 10.0 Build 19045 (release: 22H2; revision: 3086; 64-bit)
02:47:55.150: Running as administrator: false
02:47:55.150: Windows 10/11 Gaming Features:
02:47:55.150: Game DVR: On
02:47:55.150: Game Mode: Probably On (no reg key set)
02:47:55.153: Sec. Software Status:
Unhandled exception: c0000005
Date/Time: 2023-06-23, 02:48:19
Fault address: 7FFF0D98B8D2 (d:\obs studio 29.1.3\bin\64bit\obs.dll)
libobs version: 29.1.3 (64-bit)
Windows version: 10.0 build 19045 (release: 22H2; revision: 3086; 64-bit)
CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Thread 2168: CrBrowserMain (Crashed)
Stack EIP Arg0 Arg1 Arg2 Arg3 Address

XAMPP - Replace MariaDB with MySQL

Since XAMPP 5.5.30 and 5.6.14, XAMPP ships MariaDB instead of MySQL. MariaDB is not 100% compatible with MySQL and can be replaced with the "orginal" MySQL server.

Backup

  • Backup the old database into a sql dump file
  • Stop the MariaDB service
  • Rename the folder: c:\xampp\mysql to c:\xampp\mariadb