Download loda-rust/script/miner_sync_debug.rb from Alignment-Lab-AI/ARC-stuff: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/datasets/Alignment-Lab-AI/ARC-stuff/resolve/main/loda-rust/script/miner_sync_debug.rb
- Command line
-
hf download hf://datasets/Alignment-Lab-AI/ARC-stuff/loda-rust/script/miner_sync_debug.rb
-
curl -L -o miner_sync_debug.rb https://huggingface.co/datasets/Alignment-Lab-AI/ARC-stuff/resolve/main/loda-rust/script/miner_sync_debug.rb
493 Bytes
| # For debugging of the "sync" code | |
| # Intended for LODA developers. | |
| # | |
| # This appends a timestamp to a logfile. | |
| # And it's possible to tweak what is being returned "changed" or "nochange". | |
| require 'time' | |
| require_relative 'config' | |
| timestamp = Time.now.utc.iso8601 | |
| log_file_path = File.join(Config.instance.dot_loda_rust, "miner_sync_debug_log.txt") | |
| File.open(log_file_path, "a") do |f| | |
| f << "Sync: #{timestamp}\n" | |
| end | |
| #puts "status: nochange" | |
| puts "status: changed" | |