Skip to content

Instantly share code, notes, and snippets.

Maksym Melnychok keymone

Block or report user

Report or block keymone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
keymone / encrypt_decrypt.rb
Last active Jun 19, 2018 — forked from wteuber/encrypt_decrypt.rb
Simply encrypt and decrypt Strings in ruby.
View encrypt_decrypt.rb
require 'openssl'
require 'base64'
# key and iv stored in configs, generated using:
# cipher ='AES-256-CBC').encrypt
# key = cipher.random_key
# iv = cipher.random_iv
def encrypt_id(key, iv, id)
cipher ='AES-256-CBC').encrypt
keymone /
Last active Apr 10, 2018 — forked from romanz/
Bitcoin Full Node on AWS Free Tier

Bitcoin Full Node on AWS Free Tier


  • Launch one T2 micro instance, using Ubuntu 14.04 LTS AMI.
  • Open SSH and Bitcoin Protocol TCP ports: 22, 8333.
  • Attach 150GB EBS (General-Purpose SSD) volume for blockchain storage to /dev/sdf.

The pricing would be ~$15/month. See here for more details.

keymone / speedtest.rb
Created Jul 16, 2012 — forked from equivalent/speedtest
ljust speed test
View speedtest.rb
# just speed test for
# if we properly test int<->str conversion the log_10 method is about 30% faster
int = 5
a =
10_000_000.times { int.to_s.ljust(3, "0").to_i }
puts - a # => 1.3s
You can’t perform that action at this time.