Skip to content

Instantly share code, notes, and snippets.

View amir16yp's full-sized avatar

lol amir16yp

View GitHub Profile
@amir16yp
amir16yp / setup-windows11.ps1
Created September 12, 2026 07:39
setup a new windows 11 install to my liking
#Requires -Version 5.1
$ErrorActionPreference = "Stop"
function Install-VSCPPRuntimes {
$VSCPP = "https://nl1-dl.techpowerup.com/files/pi_Hnbn3cBjQa7655ctyWg/1789173810/Visual-C-Runtimes-All-in-One-Jun-2026.zip"
$TempDir = Join-Path $env:TEMP "VSCPP"
$ZipFile = Join-Path $TempDir "Visual-C-Runtimes-All-in-One-Jun-2026.zip"
$InstallBat = Join-Path $TempDir "install_all.bat"
@amir16yp
amir16yp / visualytdlcomments.py
Created January 20, 2024 21:24
Visualize downloaded yt-dlp comments in HTML format
import json
from sys import argv
from datetime import datetime
header_html = """\
<!DOCTYPE html>
<html>
<head>
<title>Comment Data</title>
<style>
@amir16yp
amir16yp / yts.py
Created November 29, 2023 19:42
YTS scraper/downloader
#!/usr/bin/python3
import requests
from bs4 import BeautifulSoup
from sys import argv
from os import getcwd
import subprocess
def ask_yes_no_question(question):