Skip to content

Instantly share code, notes, and snippets.

@dozreg-toplud
Last active December 18, 2025 16:40
Show Gist options
  • Select an option

  • Save dozreg-toplud/f4011b612f06ad8f19ad0db1ca3ca7e1 to your computer and use it in GitHub Desktop.

Select an option

Save dozreg-toplud/f4011b612f06ad8f19ad0db1ca3ca7e1 to your computer and use it in GitHub Desktop.
:: Script runes:
::
:: @@: run every fixed period of time
:: ##: import a hoon file from a path,
:: first element of the path is the name
:: of a desk
::
:: Cron scheduler: run /pack script every Sunday at 02:00 AM,
:: restart once a day if it crashed
::
@@ ~d1
## lib=/orchestra/lib/orchestra/hoon
::
%- scheduler:lib
:~
:- /pack
(cron:cron:lib [~[0] ~[2] `~ ~ ~[[7 0]]])
==
:: Pack your pier
::
## sio=/base/lib/strandio/hoon
::
=/ m (strand:sio vase)
^- form:m
;< * bind:m (poke-our:sio %hood helm-pack+!>(~))
(pure:m !>(~))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment