I hereby claim:
- I am chinoman10 on github.
- I am chinoman10 (https://keybase.io/chinoman10) on keybase.
- I have a public key ASAwMb1MaN2kfnGL5VCTd8jE55yWiyHuZJcbkD2vJOAlWgo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # ============================================================================== | |
| # loaders.sh — Lightweight Loading animations for Bash TUI's | |
| # ============================================================================== | |
| # | |
| # A drop-in module that gives your Bash scripts Docker-like animated progress: | |
| # - Braille-based progress bars (dense, smooth filling) | |
| # - Spinners | |
| # - Multiple concurrent tasks | |
| # - curl / wget integration |
| #!/bin/bash | |
| CHAIN_DAEMON="terrad" | |
| # Exit immediately if a command exits with a non-zero status. | |
| set -e | |
| # Define color-coded log functions with timestamps | |
| cyan() { printf '[%b] \e[1;36m%b\e[m\n' "$(date +%T)" "$1"; } | |
| ok() { printf '[%b] \e[32m%b\e[m\n' "$(date +%T)" "$1"; } |
| #!/usr/bin/env pwsh | |
| #Requires -Version 7.0 | |
| <# | |
| .SYNOPSIS | |
| Rolling internet connectivity monitor. | |
| .DESCRIPTION | |
| Continuously pings a target and displays a color-coded rolling window | |
| of results with latency statistics, streak tracking, and outage timing. | |
| Parameters override environment variable defaults. |
| #!/usr/bin/env bash | |
| set -u | |
| # ========================= | |
| # Defaults | |
| # Precedence: defaults < env vars < CLI args | |
| # ========================= | |
| TARGET="${TARGET:-1.1.1.1}" | |
| WINDOW="${WINDOW:-60}" |
| # the script itself can be called with a file path argument or not. | |
| [CmdletBinding()] | |
| param( | |
| [ValidateScript({ | |
| if(-Not ($_ | Test-Path -PathType Leaf) ){ | |
| throw "The Path argument must be a file. Folder paths are not allowed." | |
| } | |
| return $true | |
| })] | |
| [Parameter()] [System.IO.FileInfo] $batchFile |
| <# This PowerShell script can simply be copied over to a "PowerShell IDE" window, and then ran for as long as you want. | |
| The time this script remains active (sending mouse events to Windows so it things you're "still there", is the number | |
| of iterations on line 6 (default: 200) multiplied by the number of seconds on line 11 (default: 290). | |
| If your computer locks/marks as Away on Skype/Teams only after 10 minutes for example, change 290 seconds to 590. | |
| #> | |
| <# If you get a "File cannot be loaded because running scripts is disabled on this system.", then type in the PowerShell ISE console: | |
| powershell -ExecutionPolicy ByPass -File filename-here.ps1 | |
| #> | |
| param($iterations = 200) |
| ' Just put this file inside the folder: %AppData%\Microsoft\Windows\Start Menu\Programs\Startup | |
| ' And replace the names of the programs to your liking | |
| apps = Array("WhatsApp Desktop", "Stream Deck") | |
| Set WshShell = CreateObject("WScript.Shell" ) | |
| For each app in apps | |
| command = "Start Shell:AppsFolder\\\""$(Get-StartApps -Name \"""&app&"\"" | foreach {$_.AppID})\""" | |
| pscmd = "powershell -command " & command | |
| WshShell.Run pscmd,0 | |
| Next |
I hereby claim:
To claim this, I am signing this object: