Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ariya/berkala
Advanced tools
Readme
Berkala runs scheduled tasks specified in a YAML-based configuration.
To get started, first download the binary for your operating system from the Releases page. Unpack the ZIP file and run the executable.
Since a config file does not exist yet, you will be offered to create one.
Simply accept it and berkala.yml
will be created, which may look like the following:
tasks:
# Without an explicit interval, the task runs immediately
boot:
steps:
- notify: Berkala starts now
stay-hydrated:
interval: every 1 hour
steps:
- notify: Drink some water! # TODO: how much?
- print: Reminder was sent
lunch:
interval: at 11:58am
steps:
- notify: It's lunch time very soon
title: Important
- say: Get ready for lunch
sign-of-life:
interval: every 2 hours
steps:
- run: ping -c 7 google.com
timeout-minutes: 2
weekend-exercise:
cron: 0 9 * * 6 # every 9 morning on Saturday
steps:
- notify: Time for some exercises!
title: Stay healthy
Just like any regular YAML, everything from the #
character until the end of the line will be ignored. Use this to insert comments.
The schedule for each task can be specified as:
every 5 minutes
, at 5pm
, or0 9 * * 6
If neither is explicitly stated, then the task runs right away.
Each task consists of one or more steps.
Every step must be one of the following:
run
: executes a shell commandExample:
sign-of-life:
interval: every 30 minutes
steps:
- run: ping -c 7 google.com
Optionally, timeout-minutes
can be used to limit the execution time and working-directory
can be used to set the directory to start the execution from.
Another example:
sys-resource:
interval: every 2 hours
steps:
- run: |
date >> resources.log
top | head -n 4 >> resources.log
timeout-minutes: 3
working-directory: /var/log
print
: displays a message to the standard outputExample:
morning:
interval: at 7:00am
steps:
- print: Good morning!
notify
: sends a desktop notificationOptionally, title
can be used to set the notification title.
Example:
mahlzeit:
interval: at 11:58am
steps:
- notify: It's lunch time very soon
title: Yummy
The notification is supported on the following system:
display notification
with AppleScriptlibnotify-bin
package on Debian/Ubuntusay
: converts text to audible speechExample:
vaya-con-dios:
interval: 0 17 * * 1-5 # every workday late afternoon
steps:
- say: Time to go home
The text-to-speech conversion is supported on the following system:
say
with AppleScriptfestival
and festvox-kallpc16k
on Debian/UbuntuFound a problem or have a new idea? File an issue!
FAQs
Run scheduled tasks
The npm package @ariya/berkala receives a total of 1 weekly downloads. As such, @ariya/berkala popularity was classified as not popular.
We found that @ariya/berkala demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.