Skip to content

Instantly share code, notes, and snippets.

View mevlut36's full-sized avatar

Mevlut TUNCA mevlut36

View GitHub Profile
@mevlut36
mevlut36 / WinServ.ps1
Created November 20, 2023 20:36
This script help to installs and configures Active Directory, DNS, and DHCP on Windows Server.
# 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"
@mevlut36
mevlut36 / LoLIconsDownload.py
Created November 3, 2023 20:47
Python script that downloads all League of Legends champion icons
# 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):
@mevlut36
mevlut36 / ClearFiveMCache.bat
Created September 3, 2023 17:22
Small script to clear FiveM's cache
@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