This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# | |
# Original script by Ed Blackman, posted May 12, 2009, at | |
# http://tech.groups.yahoo.com/group/todotxt/message/2299 | |
# | |
# Ruthlessly reduced by Andreas Schamanek in May, 2012. | |
# | |
# This script relies on the fact that a lexical sort of YYYY-MM-DD | |
# date strings produces the same result as a calendar sort, but avoids | |
# the tricky calendar math. It will *not* work for other types of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flatten an rss2email multipart digest | |
# | |
# Tested only with GNU Awk, and rss2email up to 3.13.1. | |
# This script expects the encodings setting in r2e to prefer UTF-8. | |
# It also expects that input was run through `formail -c`, and it | |
# requires reformime (on e.g. Debian part of package maildrop) | |
function output() { | |
# print entry | |
print "-----------------" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
me=sshpingpong | |
# | |
# Measure close to minimal packet latency (RTT) of an SSH connection | |
# | |
prgversion="$me * 2022-07-27 (c) Andreas Schamanek" | |
# | |
# @author Andreas Schamanek <https://andreas.schamanek.net> | |
# @license GPL <https://www.gnu.org/licenses/gpl.html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/gawk -f | |
# | |
# Print IP addresses that match networks in CIDR notation | |
# | |
# rgrepcidr[.awk] * 2025-02-02 (c) Andreas Schamanek | |
# | |
# @author Andreas Schamanek <https://andreas.schamanek.net> | |
# @license GPL <https://www.gnu.org/licenses/gpl.html> | |
# | |
# The script supports 3 output styles by setting variable "output": |