RB sample file
rb_sample_file_2MB.rb
2.0 MB
application/x-ruby
SHA256 verified
File details
Filename
rb_sample_file_2MB.rbSize2.0 MB (2097187 bytes)
MIME type
application/x-rubyExtension
.rbSHA256
71498e3a839e9ef6b1b429eeaf2036389f12c8ab4249cbe3b36cd4ab538c6645Download commands
Use in scripts and tests
curl -L -o rb_sample_file_2MB.rb \
https://samplefile.com/samples/download/code/rb/rb_sample_file_2MB.rb/
wget -O rb_sample_file_2MB.rb \
https://samplefile.com/samples/download/code/rb/rb_sample_file_2MB.rb/
import requests
url = "https://samplefile.com/samples/download/code/rb/rb_sample_file_2MB.rb/"
resp = requests.get(url)
with open("rb_sample_file_2MB.rb", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/rb/rb_sample_file_2MB.rb/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("rb_sample_file_2MB.rb", buf);
# Download and verify SHA256
curl -L -o rb_sample_file_2MB.rb https://samplefile.com/samples/download/code/rb/rb_sample_file_2MB.rb/
echo "71498e3a839e9ef6b1b429eeaf2036389f12c8ab4249cbe3b36cd4ab538c6645 rb_sample_file_2MB.rb" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/rb/rb_sample_file_2MB.rb/").content
assert hashlib.sha256(data).hexdigest() == "71498e3a839e9ef6b1b429eeaf2036389f12c8ab4249cbe3b36cd4ab538c6645"
More RB files
Other RB Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
rb_sample_file_1MB.rb |
1.0 MB | 906e292b9c626977… |
Download |
rb_sample_file_200KB.rb |
200.0 KB | 5b2435679cbbd820… |
Download |
rb_sample_file_500KB.rb |
500.0 KB | 0a2f098edc059d7b… |
Download |
rb_sample_file_50KB.rb |
50.0 KB | 9e98fec6a329a78f… |
Download |
rb_sample_file_5MB.rb |
5.0 MB | 247e28f2af92e793… |
Download |
Learn more