Skip to content

Instantly share code, notes, and snippets.


Alexey Shepelev AlexeyShepelev

View GitHub Profile
AlexeyShepelev /
Last active Oct 1, 2022
Ruby on Rails for Beginners

Installing Ruby on Rails on Ubuntu 20.10

Installing required libraries

sudo apt install curl
curl -sL | sudo -E bash -
curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update

View mycelium_gear_api.rb
require "net/http"
# You can get the api_gateway_id value from your gateway's info
# in the dashboard panel.
gateway_id = 17171
# It determines the amount to be paid for this order.
amount_in_btc = 2.5
# When a callback request is issued, this callback_data param will