From 4bbaab46dd0cc58108c0d8a184d1648afdbe0b8b Mon Sep 17 00:00:00 2001 From: xenofem Date: Sat, 22 Jul 2023 00:41:55 -0400 Subject: [PATCH] add README and LICENSE --- LICENSE | 7 +++ README.md | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..305b1dd --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright © 2022-2023 xenofem + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..997c097 --- /dev/null +++ b/README.md @@ -0,0 +1,126 @@ +# evenmoreutils + +a collection of small unix CLI tools, similar to +[moreutils](https://joeyh.name/code/moreutils/) + +## domnet + +`domnet` is a bare-bones tool for calculating the inverse of a +collection of IP subnets, which may be useful if you're doing weird +routing nonsense. + +### examples + +``` +$ domnet 192.168.1.0/24 +0.0.0.0/1 +128.0.0.0/2 +192.0.0.0/9 +192.128.0.0/11 +192.160.0.0/13 +192.168.0.0/24 +192.168.2.0/23 +192.168.4.0/22 +192.168.8.0/21 +192.168.16.0/20 +192.168.32.0/19 +192.168.64.0/18 +192.168.128.0/17 +192.169.0.0/16 +192.170.0.0/15 +192.172.0.0/14 +192.176.0.0/12 +192.192.0.0/10 +193.0.0.0/8 +194.0.0.0/7 +196.0.0.0/6 +200.0.0.0/5 +208.0.0.0/4 +224.0.0.0/3 + +$ domnet fd00:0123:abcd::/48 2001:7f8::/29 +::/3 +2000::/16 +2001::/22 +2001:400::/23 +2001:600::/24 +2001:700::/25 +2001:780::/26 +2001:7c0::/27 +2001:7e0::/28 +2001:7f0::/29 +2001:800::/21 +2001:1000::/20 +2001:2000::/19 +2001:4000::/18 +2001:8000::/17 +2002::/15 +2004::/14 +2008::/13 +2010::/12 +2020::/11 +2040::/10 +2080::/9 +2100::/8 +2200::/7 +2400::/6 +2800::/5 +3000::/4 +4000::/2 +8000::/2 +c000::/3 +e000::/4 +f000::/5 +f800::/6 +fc00::/8 +fd00::/24 +fd00:100::/27 +fd00:120::/31 +fd00:122::/32 +fd00:123::/33 +fd00:123:8000::/35 +fd00:123:a000::/37 +fd00:123:a800::/39 +fd00:123:aa00::/40 +fd00:123:ab00::/41 +fd00:123:ab80::/42 +fd00:123:abc0::/45 +fd00:123:abc8::/46 +fd00:123:abcc::/48 +fd00:123:abce::/47 +fd00:123:abd0::/44 +fd00:123:abe0::/43 +fd00:123:ac00::/38 +fd00:123:b000::/36 +fd00:123:c000::/34 +fd00:124::/30 +fd00:128::/29 +fd00:130::/28 +fd00:140::/26 +fd00:180::/25 +fd00:200::/23 +fd00:400::/22 +fd00:800::/21 +fd00:1000::/20 +fd00:2000::/19 +fd00:4000::/18 +fd00:8000::/17 +fd01::/16 +fd02::/15 +fd04::/14 +fd08::/13 +fd10::/12 +fd20::/11 +fd40::/10 +fd80::/9 +fe00::/7 +``` + +## sorta + +`sorta` is a tool that finds the "interesting" part of each line of +its input, sorts the lines based on those parts, and highlights that +part of each line in its output. "interesting" is defined in a +somewhat arbitrary way and isn't currently customizable. mostly, it +ignores `(runs of) [parenthesized text]` at the start and end of a +line.