dotfiles/scripts/trynafail
rpriven 5b6af65def
Organize scripts and clean up dotfiles
Changes:
- Added 80+ scripts with organized structure
  - payloads/ for third-party pentesting tools
  - pentesting/ for custom security scripts
  - Daily drivers remain flat for fast access
- Converted wes() function to proper script
- Removed .sh extensions from pentesting scripts
- Cleaned up aliases (removed 31 redundant lines)
- Added kanata/, build artifacts to gitignore
- Removed old fre.sh scripts and empty a.out
- Updated configs: helix, tmux, zsh, ulauncher, redshift

Security: All sensitive data excluded via gitignore
2025-11-07 14:48:21 -07:00

15 lines
428 B
Bash
Executable file

#!/usr/bin/env bash
set -u
# Script Name: trynafail
# Description: Run command until it fails (every 0.5s)
# Source: https://evanhahn.com/scripts-i-wrote-that-i-use-all-the-time/
# Credit: Evan Hahn - https://codeberg.org/EvanHahn/dotfiles
# Usage: trynafail nc -zv localhost 8080 # monitor until service dies
# trynafail curl -sf https://api.example.com/health
"$@"
while [[ "$?" -eq 0 ]]; do
sleep 0.5
"$@"
done