Skip to content

Instantly share code, notes, and snippets.

View AikedeJongste's full-sized avatar
🏠
Working from home

Aike de Jongste AikedeJongste

🏠
Working from home
View GitHub Profile
@AikedeJongste
AikedeJongste / hdparm.txt
Last active May 31, 2019 12:26
hdparm disk speed tests
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
@AikedeJongste
AikedeJongste / connect_ticketmatic.rb
Last active March 21, 2023 14:18
Ruby connect to TicketMatic 3 API JSON
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