This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PowerShell Script to Install and Configure Active Directory, DNS, and DHCP on Windows Server | |
| $domainName = Read-Host "Enter the domain name (example: mydomain.local)" | |
| $dhcpStartRange = Read-Host "Enter the start of the DHCP range (example: 192.168.1.10)" | |
| $dhcpEndRange = Read-Host "Enter the end of the DHCP range (example: 192.168.1.100)" | |
| $subnetMask = Read-Host "Enter the subnet mask for DHCP (example: 255.255.255.0)" | |
| $dnsPrimary = Read-Host "Enter the IP address of the primary DNS server" | |
| $adminPassword = Read-Host "Enter the domain admin password" -AsSecureString | |
| $dhcpScopeName = "DHCP Scope" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Python script that downloads all League of Legends champion icons | |
| import os | |
| import requests | |
| base_url = "https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/v1/champion-icons/" | |
| destination_folder = "lol_icons" | |
| os.makedirs(destination_folder, exist_ok=True) | |
| for i in range(1, 1001): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set FIVEM_CACHE_PATH=%LOCALAPPDATA%\FiveM\FiveM.app\data | |
| echo Removing FiveM's cache except game-storage... | |
| cd /d %FIVEM_CACHE_PATH% | |
| for /D %%x in (*) do ( | |
| if /I not "%%x"=="game-storage" ( | |
| echo Deleting the folder: %%x |