RB sample file
rb_sample_file_50KB.rb
50.0 KB
application/x-ruby
SHA256 verified
File details
Filename
rb_sample_file_50KB.rbSize50.0 KB (51200 bytes)
MIME type
application/x-rubyExtension
.rbSHA256
9e98fec6a329a78fc9848c560021e68a36c6e27389e4325beb366c2212ce0ebaDownload commands
Use in scripts and tests
curl -L -o rb_sample_file_50KB.rb \
https://samplefile.com/samples/download/code/rb/rb_sample_file_50KB.rb/
wget -O rb_sample_file_50KB.rb \
https://samplefile.com/samples/download/code/rb/rb_sample_file_50KB.rb/
import requests
url = "https://samplefile.com/samples/download/code/rb/rb_sample_file_50KB.rb/"
resp = requests.get(url)
with open("rb_sample_file_50KB.rb", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/rb/rb_sample_file_50KB.rb/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("rb_sample_file_50KB.rb", buf);
# Download and verify SHA256
curl -L -o rb_sample_file_50KB.rb https://samplefile.com/samples/download/code/rb/rb_sample_file_50KB.rb/
echo "9e98fec6a329a78fc9848c560021e68a36c6e27389e4325beb366c2212ce0eba rb_sample_file_50KB.rb" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/rb/rb_sample_file_50KB.rb/").content
assert hashlib.sha256(data).hexdigest() == "9e98fec6a329a78fc9848c560021e68a36c6e27389e4325beb366c2212ce0eba"
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_2MB.rb |
2.0 MB | 71498e3a839e9ef6… |
Download |
rb_sample_file_500KB.rb |
500.0 KB | 0a2f098edc059d7b… |
Download |
rb_sample_file_5MB.rb |
5.0 MB | 247e28f2af92e793… |
Download |
Learn more