Skip to content

Instantly share code, notes, and snippets.

@MacSteini
MacSteini / dnspeek.md
Created February 3, 2025 03:54
A lightweight Bash script that queries all major DNS records for a given domain.

dnspeek – One-Line Bash DNS Record Checker

dnspeek is a lightweight Bash script that queries all major DNS records for a given domain.

Features

  • Queries common DNS records using dig
  • Supports Bash and Zsh
  • Allows custom DNS resolvers (default: 8.8.8.8)
  • Fast, simple, and effective in a single line

Installation

Copy and paste the script into your terminal, then run:

@MacSteini
MacSteini / SpaceScanner.zsh
Created December 20, 2024 16:45
Webmin SpaceScanner: A script for processing and optimising language files. Trims extra spaces, normalises spacing around ‘=’ symbols, and removes leading and trailing whitespace.
#!/usr/bin/env zsh
# SpaceScanner v1.0
#
# Designed for Webmin (https://webmin.com/),
# a Unix-based web administration tool.
#
# A script for processing and optimising Webmin’s language files. Trims
# extra spaces, normalises spacing around ‘=’ symbols, and removes
# leading and trailing whitespace.