Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexey Shepelev AlexeyShepelev

View GitHub Profile
@AlexeyShepelev
AlexeyShepelev / instructions.md
Last active Mar 1, 2021
Ruby on Rails for Beginners
View instructions.md

Installing Ruby on Rails on Ubuntu 20.10

Installing required libraries

sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ 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