Skip to content

Instantly share code, notes, and snippets.

View AhsenBaig's full-sized avatar

Ahsen Baig AhsenBaig

View GitHub Profile
@AhsenBaig
AhsenBaig / Readme.md
Created February 3, 2025 16:55 — forked from LM1LC3N7/Readme.md
Automating application install on a fresh Windows 10/11 using Microsoft Store and winget

FASIC

Fast and Automatic Software Install and Configuration (on Windows)

Need

Install my common apps on Windows as fast as possible and mostly automatically, after a reimaging or reset of my OS. Also change some settings on Windows, like disabling the bing search in the start menu.

How it works?

This PowerShell script uses Microsoft Store and winget to download and install a list of application, configured at the top of the file.

@AhsenBaig
AhsenBaig / win_fix_local_net.ps1
Last active August 31, 2022 15:06
Windows fix local net issues (renew, flushdns, netsh, winsock, etc.)
# FIX Net isues
## IPCONFIG - options
ipconfig /release
ipconfig /flushdns
ipconfig /renew
## NETSH - options
netsh int ip reset
netsh winsock reset
@AhsenBaig
AhsenBaig / psdecode.ps1
Created February 24, 2022 00:21 — forked from idiom/psdecode.ps1
Script to decode a Base64 Encoded and Compressed PowerShell script
#
# Decode a base64 and compressed Powershell script.
#
#
#
#
$input = Read-Host -Prompt 'Base64 Text'
$decoded = $(New-Object IO.StreamReader ($(New-Object IO.Compression.DeflateStream($(New-Object IO.MemoryStream(,$([Convert]::FromBase64String($input)))), [IO.Compression.CompressionMode]::Decompress)), [Text.Encoding]::ASCII)).ReadToEnd();
Write-Host "----- Decoded -----"
@AhsenBaig
AhsenBaig / .mytheme-v1.0.0-v3.omp.json
Last active February 14, 2022 20:01
My Oh My Posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Folder }}",
"transient_prompt": {
"background": "transparent",
"foreground": "#c4c4c4",
@AhsenBaig
AhsenBaig / Build_SQLInstance_wStringCreds_andPortNumber.ps1
Created October 19, 2021 18:12 — forked from SQLvariant/Build_SQLInstance_wStringCreds_andPortNumber.ps1
Use Invoke-ExecuteNotebook to build a SQL-on-Linux instance in a Docker container, by calling Invoke-ExecuteNotebook to execute the Notebook, and passing in the sa_password & digits for the name/port number to the Notebook as a parameter.
Invoke-ExecuteNotebook -InputNotebook .\SQL-on-Docker-with-PowerShell.ipynb -Parameters @{sa_password = 'Test9999'; SQLNumber = 97}
@AhsenBaig
AhsenBaig / VS Code PowerLine.md
Last active July 3, 2024 17:22
VS Code Powerline in Windows Terminal
@AhsenBaig
AhsenBaig / WinSCP_WindowsTerminal.bat
Last active February 10, 2025 22:19
WinSCP - Replace PuTTY with Windows Terminal
@echo off
@REM WinSCP PuTTY/Terminal client path:
@REM "<drive>:\<Path_to_file>\WindowsTerminal.bat" "!K" !U@!@ !# !/ "!N"
@REM setlocal
setlocal enabledelayedexpansion
SET "debugMode=n"
SET "Line======================="