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 / HashGroup.ps1
Last active June 25, 2024 17:52
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.
.EXAMPLE
HashGroup.ps1 -Path C:\Users\User\Documents
.NOTES
@neuralpain
neuralpain / kanxi_zidian.md
Last active June 15, 2024 04:55
康熙字典 (Kāngxī zìdiǎn), Chinese text and radicals information
@neuralpain
neuralpain / NP_TOP_OSS.md
Last active June 16, 2024 03:42
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 / USEFUL_REPO.md
Last active June 15, 2024 05:58
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 / 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 / New-ToastNotification.ps1
Created June 8, 2024 04:53
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 ToastTitle
The title of the Toast notification
@neuralpain
neuralpain / Format-Text.ps1
Last active May 1, 2024 07:08
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 / 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 / Measure-UserBandwidth.ps1
Last active April 6, 2024 01:40
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 / Invoke-URLInDefaultBrowser.ps1
Created March 14, 2024 10:39 — forked from jkdba/Invoke-URLInDefaultBrowser.ps1
PowerShell cmdlet to open a URL in the user's default browser.
function Invoke-URLInDefaultBrowser
{
<#
.SYNOPSIS
Cmdlet to open a URL in the User's default browser.
.DESCRIPTION
Cmdlet to open a URL in the User's default browser.
.PARAMETER URL
Specify the URL to be Opened.
.EXAMPLE