Skip to content

Instantly share code, notes, and snippets.

View baaamn's full-sized avatar
🎯
Focusing

BAAAMN baaamn

🎯
Focusing
  • Pacific Northwest
  • 19:10 (UTC -07:00)
View GitHub Profile
# Promptext Install Commands
## PowerShell (Windows) — install latest
```powershell
irm https://raw.githubusercontent.com/1broseidon/promptext/main/scripts/install.ps1 | iex
```
## PowerShell (Windows) — uninstall
```powershell
irm https://raw.githubusercontent.com/1broseidon/promptext/main/scripts/install.ps1 | iex -Uninstall
@baaamn
baaamn / Powershell - All available properties of Windows Environment Variablesusing Get-ChildItem.md
Created April 3, 2026 13:03
`Get-ChildItem Env:` only shows the *standard* properties exposed by the **first** environment variable object. To see **all** properties available across *all* objects, you must enumerate them and inspect their *combined* property set. Below are the **three best ways**, depending on what you want.

Powershell - Get all properties using 'Get-ChildItem Env:'

Short answer:
Get-ChildItem Env: only shows the standard properties exposed by the first environment variable object.
To see all properties available across all objects, you must enumerate them and inspect their combined property set.

Below are the three best ways, depending on what you want.


@baaamn
baaamn / Promptext-Uninstall.ps1
Created April 3, 2026 01:07
promptext-uninstall-robust.ps1: A safer “download then run” wrapper that fetches the upstream scripts/install.ps1 and runs it with -Uninstall, avoiding irm ... | iex.
# Filename: Promptext-Uninstall.ps1
<#
.SYNOPSIS
Robust uninstaller for the promptext CLI on Windows (PowerShell) using a download-then-run workflow.
.DESCRIPTION
This script uninstalls the promptext CLI by downloading the official installer script from the
promptext GitHub repository (via raw.githubusercontent.com) into a temporary file, then executing it
with the -Uninstall switch.
@baaamn
baaamn / Promptext-Install.ps1
Created April 3, 2026 01:03
promptext-install-robust.ps1: A safer “download then run” wrapper for the upstream scripts/install.ps1 installer. Avoids irm ... | iex, downloads the installer from raw.githubusercontent.com, then runs it with -ExecutionPolicy Bypass in a child PowerShell process.
# Filename: Promptext-Install.ps1
<#
.SYNOPSIS
Robust installer for the promptext CLI on Windows (PowerShell) using a download-then-run workflow.
.DESCRIPTION
This script installs the promptext CLI by downloading the official installer script directly from the
promptext GitHub repository (via raw.githubusercontent.com) into a temporary file, then executing it.
Why this exists:
<#
.SYNOPSIS
Scans files or clipboard for URLs with customizable output fields and export capabilities.
.DESCRIPTION
This function parses text for HTTP/HTTPS links. It allows granular control over
which metadata properties (Path, Line, Value, etc.) are included in the final output.
It supports:
1. Detailed Extraction: Returns specific properties for every match.
# Install Scoop App
# scoop alias add i 'scoop install $args[0]' 'Install scoop app'
scoop alias add i 'foreach ($_ in $args) {scoop install $_ -su}' 'Install apps'
# Uninstall Scoop App
scoop alias add rm 'scoop uninstall $args[0]' 'Uninstall a scoop app'
# List Scoop Apps
scoop alias add ls 'scoop list' 'List installed scoop apps'
@baaamn
baaamn / google-generative
Created January 4, 2025 15:36
Google commands and stuff
pip install -q -U google-generativeai
@baaamn
baaamn / Scoop-Install.ps1
Last active May 16, 2026 10:33
Scoop Installation Script
###############################################################################
# Scoop Installation Script
# Author: Wesley
# Purpose: Automate Scoop setup, bucket registration, and app installation
###############################################################################
# -------------------------------
# 1. Configure Execution Policy
# -------------------------------
# Allow running local scripts for the current user
# Powershell One-Liner that downloads the latest Python-Version for Windows and asks if it should install it right away. It even opens an elevated sessions with admin rights.
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"$url = (Invoke-WebRequest -Uri 'https://www.python.org/downloads/windows/').Content | Select-String -Pattern 'https://www.python.org/ftp/python/\d+\.\d+\.\d+/python-\d+\.\d+\.\d+-amd64\.exe' -AllMatches | % { `$_.Matches[0].Value }; $path = `$env:USERPROFILE\Downloads\ + (`$url -split '/')[-1]; Invoke-WebRequest -Uri `$url -OutFile $path; if ((Read-Host 'Install? (Y/N)') -ieq 'y') { Start-Process -FilePath $path -Wait }`"" -Verb RunAs } else { $url = (Invoke-WebRequest -Uri 'https://www.python.org/downloads/windows/').Content | Select-String -Pattern 'https://www.python.org/ftp/python/\d+
@baaamn
baaamn / css-only-shimmering-neon-text.markdown
Created May 2, 2023 21:04
CSS-only shimmering neon text

CSS-only shimmering neon text

This is so not what a neon sign looks like, but I stumbled on the effect on accident and thought it looked cool. So.

Select the text and type whatever you want.

A Pen by Giana on CodePen.

License.