Skip to content

Instantly share code, notes, and snippets.

View swarupmtb's full-sized avatar

Swarup Saha swarupmtb

  • MTB
  • Bangladesh
View GitHub Profile
@swarupmtb
swarupmtb / kali_wsl.md
Last active February 23, 2025 10:13
Kali Linux on Windows 11

Step 1: Enable WSL and Virtual Machine Platform

  1. Open PowerShell as Administrator and run the following commands:
    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  2. Restart your computer.

import csv
def column_to_single_line(csv_file, column_name):
column_values = []
with open(csv_file, mode='r', newline='') as file:
reader = csv.DictReader(file)
for row in reader:
column_values.append(row[column_name])
@swarupmtb
swarupmtb / wss.ps1
Created March 21, 2024 10:22
Windows Sleep Script
$myshell = New-Object -com "Wscript.Shell"; for ($i = 0; ; $i++) {Start-Sleep -Seconds 600; $myshell.sendkeys("^")}
@swarupmtb
swarupmtb / command.txt
Created January 17, 2024 08:28
Windows Reset
Reset IP Stack:
netsh int ip reset
netsh winsock reset
Flush DNS Cache:
ipconfig /flushdns
Reset Firewall Rules: