By William Jeffrey Rankin, Sat Aug 31 2024
I've added a bash script (gen-planets.sh
) to the planet-rs package that generates data files for aa (Stephen L. Moshier's astronomical almanac). It currently outputs files for the Sun, Venus, Mars, Jupiter, and Saturn, but the planets
variable can be modified to include any object from the catalog.
planet-rs.tar.gz, 5.9K
By William Jeffrey Rankin, Sat July 13 2024
My minimal Mutt configuration files for iCloud Mail and Gmail. Both require two-factor authentication, and app-specific passwords be generated. Notes: <username>
refers to the email address prefix. editor
can be any editor you choose but should, of course, be Vim.
set imap_user = '<username>'
set imap_pass = '<app-specific password>'
set smtp_pass = '<app-specific password>'
set smtp_url = 'smtp://<icloud email address>@smtp.mail.me.com:587/'
set from = '<icloud email address>'
set realname = '<full name>'
set editor = 'vim'
set folder = "imaps://$imap_user:$imap_pass@imap.mail.me.com:993/"
set spoolfile = '+INBOX'
set postponed = '+Drafts'
set record = '+Sent Messages'
set trash = '+Deleted Messages'
set mbox = '+Archive'
set ssl_starttls = yes
set ssl_force_tls = yes
set imap_user = '<gmail address>'
set imap_pass = '<app-specific password>'
set smtp_pass = '<app-specific password>'
set smtp_url = 'smtps://<username>@smtp.gmail.com'
set from = '<gmail email address>'
set realname = '<full name>'
set editor = 'vim'
set folder = 'imaps://imap.gmail.com/'
set spoolfile = '+INBOX'
set trash = '+[Gmail]/Trash'
set postponed = '+[Gmail]/Drafts'
set record = '+[Gmail]/Sent Mail'
set ssl_starttls = yes
set ssl_force_tls = yes
By William Jeffrey Rankin, Thu July 4 2024
Hua now supports custom labels for paging. Labels are specified in the Hua configuration file:
next_label = Next Page
prev_label = Previous Page
Note: Spaces in labels are represented by
.
By William Jeffrey Rankin, Fri June 28 2024
A little diversion: a Halloween countdown script written in PowerShell (and Rexx).
jeffr@Europa: ~/Halloween $ powershell ./halloween.ps1
There are only 125 days until Halloween! This year, it falls on a Thursday.
# halloween - Display the number of days until Halloween and the day on which it falls
# $Author: jeffr $
# $Date: 2024-11-01 10:34:32 -0400 (Fri, 01 Nov 2024) $
# $Revision: 9 $
$c_date = Get-Date -Format 'MM/dd/yyyy'
$c_year = ($c_date.Split('/'))[2]
$c_month = ($c_date.Split('/'))[0]
if ($c_month -ge 11) { $c_year = [int]$c_year + 1 }
$h_date = "10/31/$c_year"
$days = (((New-TimeSpan -Start $c_date -End $h_date).ToString()).Split('.'))[0]
$day = (Get-Date $h_date).DayOfWeek
$day_l = 'days'
$are_is = 'are'
if ($days -eq 1) {
$day_l = 'day'
$are_is = 'is'
}
if ($days -eq '00:00:00') {
Write-Host 'TODAY is Halloween!'
} else {
Write-Host "There $are_is only $days $day_l until Halloween! This year, it falls on a $day."
}
/* halloween - Display the number of days until Halloween and the day on which it falls
$Author: jeffr $
$Date: 2024-11-02 08:20:36 -0400 (Sat, 02 Nov 2024) $
$Revision: 10 $
*/
c_date = DATE('B')
parse value DATE('N', c_date, 'B') with dom ' ' month ' ' year
if month = 'Nov' | month = 'Dec' then year = year + 1
h = '31 Oct' year
h_date = DATE('B', h)
days = h_date - c_date
day = DATE('W', h, 'N')
day_l = 'days'
are_is = 'are'
if days = 1 then do
day_l = 'day'
are_is = 'is'
end
if days = 0 then
say 'TODAY is Halloween!'
else
say 'There' are_is 'only' days day_l 'until Halloween! This year, it falls on a' day'.'
By William Jeffrey Rankin, Sat June 1 2024
Standard manuscript format template in OpenDocument format for word processors like LibreOffice, OpenOffice, etc. Conforms to the basic page layout typical to manuscripts and contains several styles for content (Para, Para First, Chapter, Chapter Sep, Block Quotation).
Manuscript.ott.zip, 15K