Collection of random code snippets and examples.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122232425262728
  1. # Crolim - Cron Limiter
  2. This utility allows you to schedule frequent cron jobs that don't actually do anything until some criteria is met (e.g. date changed).
  3. Example use case: your phone is suspended throughout the day and you want to run a daily cron job without waking the phone needlessly.
  4. ## Usage
  5. Mostly usable as a "prefix" for your cron jobs.
  6. ## Basic
  7. Run a podcast getter daily
  8. ```
  9. crolim podget
  10. ```
  11. ## Advanced
  12. Run a podcast getter daily (explicit version of the basic example):
  13. ```
  14. crolim --memory-file=$HOME/.config/crolim/memory-podcast --status-command="date +%D" podget
  15. ```
  16. ## Install
  17. Copy it to `/usr/local/bin/` with execute permissions.