free software resistance
the cost of computing freedom is eternal vigilance
### gemlist.fig
*originally posted:* dec 2024
this program is the first part of a new list generator for gemini.
ive written lots of stuff like this, it basically creates a directory.
its tailored for this website in that it searches first for "original date" then "originally posted" and if it finds neither it just uses stat -FL.
the goal is to have it arrange output by month and day, version 0.1 only lists by files as theyre found.
```
proginf "gemlist 0.1"
function odt each
openf arropen each
forin each openf
ck instr each "original date:"
iftrue ck
ordt split each "original date:" mid 2 1 split ordt "*" join ordt "" ltrim rtrim plus " "
now "original date: " plus ordt return now
next
next
now "" return now
next
function op each
openf arropen each
forin each openf
ck instr each "originally posted:"
iftrue ck
orp split each "originally posted:" mid 2 1 split orp "*" join orp "" ltrim rtrim plus " "
now "originally posted: " plus orp return now
next
next
now "" return now
next
function ost each
q 34 chr
qsp q plus " " plus q
# mmm yyyy mmm d s
st "stat -FL '" plus each plus "' | awk '{print $6 " plus qsp plus " $9 " plus qsp plus " $7 " plus qsp plus " $5}'" arrshell mid 1 1 lcase
now return st
next
counter 0
p "find . -type f" arrshell
forin each p
iftrue each
now "=> " prints
now each prints " " prints
ordt = odt each
iftrue ordt
now ordt prints
else
orp = op each
iftrue orp
now orp prints
else
orst # = ost each
# now orst prints
next
next
orst = ost each
now "| " prints
now orst prints
now "" print
now counter plus 1 swap now counter
ifmore counter 4
now "" print
counter 0
next
next
next
```
license: 0-clause bsd
```
# 2018, 2019, 2020, 2021, 2022, 2023, 2024
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```
=> https://freesoftwareresistance.neocities.org