This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yes, yes, I know, hdparm is not a proper benchmark. | |
VM op Hetzner dedicated bak met SSD's: | |
Timing buffered disk reads: 3716 MB in 3.00 seconds = 1238.48 MB/sec | |
Linode / nanode / 20GB main SSD: | |
Timing buffered disk reads: 2746 MB in 3.00 seconds = 915.07 MB/sec | |
Linode / nanode / 750GB attached volume: | |
Timing buffered disk reads: 2512 MB in 3.51 seconds = 716.46 MB/sec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
require 'Base64' | |
require 'net/http' | |
def connect(url) | |
# I'm calling this method from other files, url is what you want to get. For example '/events' | |
# Put your keys and customer name in 3 config files or change the code to get them from environment variables | |
access_key = File.open('access_key.txt', &:readline).strip | |
secret_key = File.open('secret_key.txt', &:readline).strip |