Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/audy/thrash

Randomly write to many, many files. Created out of ignorance and desperation.
https://github.com/audy/thrash

Last synced: about 22 hours ago
JSON representation

Randomly write to many, many files. Created out of ignorance and desperation.

Awesome Lists containing this project

README

        

# 🔥 Thrash

Randomly write to many, many files. Inspired by desperation.

```ruby

thrasher = Thrash.new

random_numbers = (0..10_000).to_a

1_000_000.times do |x|
filename = "thrash-#{random_numbers.sample}"
thrasher.write(filename, "data")
end

thrasher.finalize
```

## Copyright

Copyright (c) 2012 Austin G. Davis-Richardson. See LICENSE.txt for
further details.