Skip to content

Instantly share code, notes, and snippets.

@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.
#
@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 ***
###################################################################################################
# ANTICHEAT
#
# Anticheat.Enable
# Description: Enables or disables the Anticheat System functionality
# Default: 1 - (Enabled)
# 0 - (Disabled)
Anticheat.Enable = 1
@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

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!");
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
@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:

@CraftedRO
CraftedRO / multiple_ip_to_fw_rule.bat
Created June 3, 2024 23:33 — forked from ehindiayleau/multiple_ip_to_fw_rule.bat
Inject Multiple IP Addresses Into A Single Windows Firewall Rule With A Batch and Text File
@echo off
if "%1"=="list" (
netsh advfirewall firewall show rule multiple_ip_to_fw_rule | findstr RemoteIP
exit/b
)
netsh advfirewall firewall delete rule name="multiple_ip_to_fw_rule"
for /f %%i in (C:\PATH_TO_TEXT_FILE_WITH_IP_ADDRESSES\multiple_ip_to_fw_rule.txt) do (
netsh advfirewall firewall add rule name="multiple_ip_to_fw_rule" protocol=any dir=in action=block remoteip=%%i
@CraftedRO
CraftedRO / rarreg.key
Created June 5, 2024 13:27 — forked from MuhammadSaim/rarreg.key
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@CraftedRO
CraftedRO / opcache.ini
Created October 13, 2024 22:20 — forked from rohankhudedev/opcache.ini
Best Zend OpCache Settings / Tuning / Configurations
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=512