get '/' do
require 'telegram/bot'
TOKEN = 'your token'
HOOK_URL = 'https://example.com'
bot = Telegram::Bot::Api.new(TOKEN)
puts bot.set_webhook(url: HOOK_URL)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| switch_ssh_keys () { | |
| sh $HOME/shell_apps/switch_ssh_keys/ini.sh $1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install v8-315 | |
| gem install libv8 -v '3.16.14.19' -- --with-system-v8 | |
| gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8@3.15 | |
| bundle install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AllCops: | |
| TargetRubyVersion: 2.6 | |
| # Include common Ruby source files. | |
| Include: | |
| - '**/*.rb' | |
| - '**/*.gemspec' | |
| - '**/*.jbuilder' | |
| - '**/*.rake' | |
| - '**/Gemfile' | |
| - '**/Rakefile' |