Skip to content

Instantly share code, notes, and snippets.

View neuralpain's full-sized avatar
💻
Solving problems

neuralpain neuralpain

💻
Solving problems
View GitHub Profile
@neuralpain
neuralpain / Measure-UserBandwidth.ps1
Last active January 9, 2026 06:23
Measures the user's Internet bandwidth
function Measure-UserBandwidth {
<#
.SYNOPSIS
Measures the user's Internet bandwidth.
.DESCRIPTION
Measures internet bandwidth using the Ookla Speedtest CLI, which is a command-line interface to the Speedtest.net website.
The function will download the CLI from the internet if necessary.
.PARAMETER Type
@neuralpain
neuralpain / Show-WebRequestDownloadJobState.ps1
Last active May 1, 2024 07:11
Display a simple animation while waiting for a download job to complete
function Show-WebRequestDownloadJobState {
<#
.SYNOPSIS
Display a simple animation while waiting for a download job to complete.
.DESCRIPTION
Waits for a download job to complete, displaying a
progress bar while it is running. When the download is complete, the
function will write a completion message to the console.
@neuralpain
neuralpain / Format-Text.ps1
Last active August 8, 2024 03:02
Formats text in the console with Basic, 8-bit and 24-bit RGB colors and other formatting options
function Format-Text {
<#
.SYNOPSIS
Writes text with color and formatting
.DESCRIPTION
Writes text with color, formatting and RGB support
.INPUTS
This function accepts pipeline input.
@neuralpain
neuralpain / New-ToastNotification.ps1
Last active August 12, 2024 14:00
Simple Toast Notification for Windows
<#
.SYNOPSIS
Creates and displays a Windows Toast notification
.DESCRIPTION
Creates a Windows Toast notification and displays it to the user
.PARAMETER AppId
The AppId of the application that will display the notification
@neuralpain
neuralpain / bash_regex_text.sh
Last active June 10, 2024 11:48
Useful bash snipetts
re='^[0-9]+$'
if ![[ $yournumber =~ $re ]]; then
echo "error: Not a number" >&2
fi
@neuralpain
neuralpain / USEFUL_REPO.md
Last active July 8, 2024 03:08
Some Useful Repositories With Useful Information

A

B

C

onecompiler / cheatsheets

Large collection of Developer Cheat Sheets, created and maintained by the awesome developers across the globe

@neuralpain
neuralpain / NP_TOP_OSS.md
Last active July 7, 2024 02:05
neuralpain Choice of Open-Source Software

A

animate-css / animate.css

A cross-browser library of CSS animations. As easy to use as an easy thing.

withastro / astro

Build faster websites with Astro's next-gen island architecture

@neuralpain
neuralpain / kanxi_zidian.md
Last active June 15, 2024 04:55
康熙字典 (Kāngxī zìdiǎn), Chinese text and radicals information
@neuralpain
neuralpain / HashGroup.ps1
Last active June 30, 2024 15:09
Get hash values of files as a batch job (multiple files at once)
<#
.SYNOPSIS
Hashes all files in a directory and sub-directories.
.DESCRIPTION
Hashes all files in a directory and sub-directories.
.PARAMETER Path
Path to the directory to hash.
.PARAMETER Algorithm
Select hash algorithm.
.EXAMPLE
@neuralpain
neuralpain / Everything.ini
Last active July 22, 2024 04:10
My Everything utility config. Copy and paste into their respective locations.
; %APPDATA%\Everything\Everything.ini
; Read the docs: https://www.voidtools.com/support/everything/ini/
; Please make sure Everything is not running before modifying this file.
[Everything]
; General Settings
allow_multiple_windows=1
run_in_background=
show_tray_icon=
language=0
open_folder_command2=