- Install package
$ sudo apt install zsh
- Set zsh as a default shell
# frozen_string_literal: true | |
module Entities | |
# Fabric class to build object representation classes | |
class Base | |
def self.represent(...) | |
new(...).represent | |
end | |
def self.represent_collection(collection, options = {}) |
# https://core.telegram.org/widgets/login | |
require 'openssl' | |
require 'uri' | |
BOT_API_KEY = '1234567:asdfasdf' | |
SECRET_KEY = OpenSSL::Digest::SHA256.digest BOT_API_KEY | |
HASH_EXPIRATION_TIME = 60 * 60 | |
def validate_auth(params_string) |