- Create your bot with botfather
- Make you bot an admin of your channel
Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path
https://web.telegram.org/k/#-9999999999999
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
Package: com.example.package | |
Name: Example Package | |
Description: An example package. | |
This longer description will load when a depiction URL is not specified. | |
Author: Ms. Example <example@example.com> | |
Maintainer: Example, Inc. <example-inc@example.com> | |
Version: 1.0-1 | |
Section: Addons (SpringBoard) | |
Pre-Depends: com.example.system | |
Depends: com.example.library |
# first we download the list of IP ranges from CloudFlare | |
wget https://www.cloudflare.com/ips-v4 | |
# set the security group ID | |
SG_ID="sg-00000000000000" | |
# iterate over the IP ranges in the downloaded file | |
# and allow access to ports 80 and 443 | |
while read p | |
do |
#!/bin/bash | |
# This is a simple script that takes some files as arguments and sends them to a special chat | |
# Just create a new bot at @BotFather and get your chat ID from @myidbot and enter them here | |
# You can also make a shortcut in '~/.bashrc' like "alias tg='bash /opt/scripts/tg.sh'" | |
# After that restart bash and use it like 'tg file1.txt file2.jpg' | |
# EDIT TOKEN and CHAT_ID: | |
TOKEN="TOKEN" | |
CHAT_ID="12341234" | |
# Make sure curl is installed | |
for arg in "$@" |
- hosts: 'master, worker' | |
become: yes | |
tasks: | |
- name: update and install dependencies | |
apt: | |
name: | |
- apt-transport-https | |
- ca-certificates | |
- curl |