An open API service indexing awesome lists of open source software.

https://github.com/emnudge/sync-primitives


https://github.com/emnudge/sync-primitives

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Sync primitives

Idea: what if communication exclusively happens through a sync platform?

## Usage

- sync ~/foo between devices

### Confirmation strategy
- on one of these devices
- `watchexec -w ~/foo "inc-confirm foo_proj"`
- `watchexec -w ./action-list.md "exec-if-checked foo_proj "`

This will increment a line in `actions-list.md` of the form `- [ ] foo_proj (<number>)`.
When it is modified, the 2nd watch runs to see if it is checked.

## Debounce strategy
- on one of these devices
- `watchexec -w ~/foo "run-debounce foo_proj 30 <SCRIPT>"`

It will run the script in 30s after `~/foo` changes unless it another change happens before then. In which case it is 30s from that next invocation.