💾 Archived View for gemini.ctrl-c.club › ~de_alchmst › data › get-clubsmate.rb.txt captured on 2024-05-26 at 16:34:38.

View Raw

More Information

⬅️ Previous capture (2024-05-10)

-=-=-=-=-=-=-

#!/usr/bin/ruby

# get all users
USERS = `ls /home/`.split

POSSIBLE = []

# get list of only those that have both web and gemini active
USERS.each { |user|
  if File.exists? "/home/#{user}/public_html/index.html" \
      and File.exists? "/home/#{user}/public_gemini/index.gmi" \
      and user != "de_alchmst"

    POSSIBLE.push user
  end
}

# choose one
print POSSIBLE.sample