This file contains 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
##################################################################################################################### | |
# Spring Boot Actuator settings | |
# port used to expose actuator | |
management.server.port=8081 | |
# CIDR allowed to hit actuator | |
management.server.address=127.0.0.1 | |
# block access to all endpoints over JMX |
This file contains 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
package com.alexandremucci.telegrambot.bots; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Component; | |
import org.telegram.telegrambots.bots.TelegramLongPollingBot; | |
import org.telegram.telegrambots.meta.api.objects.Update; | |
@Component | |
public class ExampleBot extends TelegramLongPollingBot { |
This file contains 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
#!/bin/bash | |
# set username | |
username="username" | |
# set password to use REST API | |
# If you have two-step verification enabled (which is recommended), set an app password with restricted permissions (admin for repositories) an use it here. | |
# To other restricted actions below (clone and push) you will be asked to provide your password or ssh key. | |
# You can also change these lines (clone and push) and use the same password defined here, but be aware of security concerns about storing passwords in plain text. | |
password="password" |