Skip to content

Instantly share code, notes, and snippets.

@tomdavidson
Created May 24, 2024 04:45
Show Gist options
  • Save tomdavidson/b242f3a17d436f7f425c6b5f3b25d680 to your computer and use it in GitHub Desktop.
Save tomdavidson/b242f3a17d436f7f425c6b5f3b25d680 to your computer and use it in GitHub Desktop.

Revisions

  1. tomdavidson created this gist May 24, 2024.
    11 changes: 11 additions & 0 deletions turbo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # create ram disk
    sudo mount -t tmpfs -o size=8G tmpfs /mnt/ramdisk

    # initial sync without --delete
    rsync -avP /path/to/your/workspace/ /mnt/ramdisk

    # keep in sync with 5 sec delay to min overehad
    chokidar "**/*" --delay 5000 \
    --command "rsync -avP --delete /path/to/your/workspace/ /mnt/ramdisk"