Created
May 24, 2024 04:45
-
-
Save tomdavidson/b242f3a17d436f7f425c6b5f3b25d680 to your computer and use it in GitHub Desktop.
Revisions
-
tomdavidson created this gist
May 24, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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"