Skip to content

Instantly share code, notes, and snippets.

View masterbpro's full-sized avatar

masterbpro masterbpro

View GitHub Profile
@masterbpro
masterbpro / alertmanager.tmpl
Created November 5, 2023 20:51 — forked from jidckii/alertmanager.tmpl
Alertmanager telegram template
{{ define "__yucca_text_alert_list" }}{{ range . }}
---
🪪 <b>{{ .Labels.alertname }}</b>
{{- if .Annotations.summary }}
📝 {{ .Annotations.summary }}{{ end }}
{{- if .Annotations.description }}
📖 {{ .Annotations.description }}{{ end }}
🏷 Labels:
{{ range .Labels.SortedPairs }} <i>{{ .Name }}</i>: <code>{{ .Value }}</code>
{{ end }}{{ end }}
@masterbpro
masterbpro / AdbCommands
Created September 30, 2023 20:00 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
#!/bin/sh
case "$1" in
100) URL="http://ftp.corbina.ru/pub/100Mb"
FILE_SIZE="10485760"
;;
10) URL="http://ftp.corbina.ru/pub/10Mb"
FILE_SIZE="10485760"
;;
*) URL="http://ftp.corbina.ru/pub/10Mb"
FILE_SIZE="10485760"
import requests
from bs4 import BeautifulSoup
from loguru import logger
PAGE_URL = "https://filmix.zone/filmy/page/{page_num}"
class FilmZone:
def __init__(self):
self.session = requests.Session()