Skip to content

Instantly share code, notes, and snippets.

View dodopontocom's full-sized avatar
🎯
Focusing

Rodolfo Neto dodopontocom

🎯
Focusing
  • Me
  • brazil
View GitHub Profile
@dodopontocom
dodopontocom / comoeufacobot.md
Last active May 30, 2019 21:29
Como eu desenvolvo meus "Telegram Bots" rapidamente
#!/bin/bash
#
#❌
#✅
#✖
checked='◻️'
#🆗 ️
cron._unchecked() {
local message_id btn_type btn_list dias dias_checked
@dodopontocom
dodopontocom / bot_offline_checker.sh
Last active August 6, 2019 21:56
Função que notifica quanto tempo a internet do bot oscilou (ficou offline)
############### Verifica quanto tempo o bot ficou offline
###### Funciona para bots desenvolvidos com o ShellBot ->
########### https://github.com/shellscriptx/ShellBot/wiki
BASEDIR=$(dirname $0)
calc_min() {
awk 'BEGIN { print "%.2f\n","$*" }'
}

Como agendar desligamento/inicialização das VMs

#Tutorial completo (para VM Windows)

Para fins de economia, quando não é necessário deixar uma VM ligada o tempo todo, existe a possibilidade de agendar desligamento durante as madrugadas e finais de semana por exemplo.

Serviços:

Gcloud Instance Compute
Scheduler
PubSub

@dodopontocom
dodopontocom / bot.sh
Last active July 21, 2020 23:56
Dynamic Buttons for Telegram bots
#!/usr/bin/env bash
BASEDIR="$(cd $(dirname ${BASH_SOURCE[0]}) >/dev/null 2>&1 && pwd)"
API_VERSION_RAW_URL="https://raw.githubusercontent.com/shellscriptx/shellbot/master/ShellBot.sh"
API_GIT_URL="https://github.com/shellscriptx/shellbot.git"
_UNTICKED="⚪"
_TICKED="🔘"