sc2-replay-go
fsnotify
sc2-replay-go | fsnotify | |
---|---|---|
5 | 23 | |
- | 7,047 | |
- | - | |
- | 6.8 | |
- | almost 2 years ago | |
Go | ||
- | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sc2-replay-go
- What's a program you made that you actually use regularly?
-
Why do i feel like high level programming languages are more confusing than the lower one
https://gitlab.com/Rairden/sc2-replay-go/-/blob/master/sc2replay.go#L196
- Roast my first beginner Go project
-
How do gaming replays work? Do they just record all the actions of players, and just recreate them all on the map?
For Starcraft 2, I made a tool that uses a library to decode replays. See the table at the bottom to see how much it's compressed. A game replay goes from 100 KB binary file to 3-6 MB text file showing all the events (clicking, movement commands, etc).
-
What do people mean when Python is a really slow language?
I can show some benchmarks. I did a tiny project in Java using a python library to decode Starcraft2 replay games. Then redid the project in Go. Benchmark result here. So 580 vs 167 ms to decode 100 replays. Not a big deal.
fsnotify
-
GitHub - no-src/gofs: A cross-platform real-time file synchronization tool out of the box based on Golang
Like monitored_rsync, gofs use the fsnotify module to monitor file changes, and use inotify under linux.
-
How to detect new files or moved files
https://github.com/fsnotify/fsnotify (may not be supported in unraid with the overlay fs)
-
fanotify in x/sys/unix and file_handle structure in C
You may want to check out https://github.com/fsnotify/fsnotify and see how they handle it.
-
Hello everyone, I created an Emacs-independent (doesn't require Emacs to be running) agenda notification app. I tested it under Doom Emacs and vanilla Emacs, and it worked fine, please try it and report any possible issues at GitHub. Thanks!
i don't use org-agenda but i was looking at you code and you may want to use fsnotify instead of a timer that may use more CPU than it should:
-
Running command when file is written to drive
I think you can try fsnotify altrough you will need Go do build the cmd part. Once built you can attach it folder and pipe output to other command.
-
fsnotify has been archived
See https://github.com/fsnotify/fsnotify/issues/413
-
GoNetNinja: Days 1 and 2
https://github.com/gobuffalo/buffalo/issues/510 https://github.com/fsnotify/fsnotify/issues/152
- Fsnotify - Cross-platform file system notifications for Go.
-
When to run arbitrary/shell commands in go program.
Why not one of the native Go file watching libs (e.g. fsnotify/notify/etc)? In general you're much more likely to get better control over behaviour from native code than from shelling out.
What are some alternatives?
command_help - :information_source: Extract help text from builtin commands and man pages
juicefs - JuiceFS is a distributed POSIX file system built on top of Redis and S3.
Mouse-Button-Remaps - A simple AHK tool to remap mouse buttons to other keys.
gcsfuse - A user-space file system for interacting with Google Cloud Storage
ImageViewer - An ultra-minimalistic image viewing program for Windows built with C and SDL2
reflex - Run a command when files change
LinkedIn-Learning-Captions
goofys - a high-performance, POSIX-ish Amazon S3 file system written in Go
notify - File system event notification library on steroids.
go-systemd - Go bindings to systemd socket activation, journal, D-Bus, and unit files
modd - A flexible developer tool that runs processes and responds to filesystem changes
afero - A FileSystem Abstraction System for Go