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
import telegram | |
import telegram.ext | |
import re | |
# Utsushidasu Kagami Bot v3 | |
# With sticker removal and off-topic transfer. | |
# License: MIT | |
""" | |
Copyright 2017 Eana Hufwe |
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
function catz # cat without '#' lines | |
cat $argv | grep -v "^#" | |
end |
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/sh /etc/rc.common | |
# Copyright (C) 2010-2017 OpenWrt.org | |
USE_PROCD=1 | |
START=70 | |
BIRD_BIN="/usr/sbin/bird" | |
BIRD_CONF="/etc/bird.conf" | |
BIRD_PID_FILE="/var/run/bird.pid" |
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
[Unit] | |
Description=BIRD routing daemon | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/bird | |
ExecReload=/usr/bin/birdc configure | |
ExecStop=/usr/bin/birdc down |
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 | |
# read username | |
read -p "Username: " username | |
# read password twice | |
read -s -p "Password: " password | |
echo | |
read -s -p "Password (again): " password2 |
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
from aiogram import Bot, Dispatcher, types | |
from aiohttp import ClientSession | |
from bs4 import BeautifulSoup | |
import asyncio | |
import re | |
async def get_status(receipt_number): | |
url = 'https://egov.uscis.gov/casestatus/mycasestatus.do' | |
# changeLocale=&appReceiptNum=YSC1790007419&initCaseSearch=CHECK+STATUS |
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
from aiogram import Bot, Dispatcher, types | |
from aiogram.utils.markdown import quote_html | |
import asyncio | |
TOKEN = '' | |
MAIN_GRP = -1 | |
MAIN_GRP_LNK = 'https://t.me/111' | |
DISSCUSSION_GRP = -1 | |
DISSCUSSION_GRP_LNK = 'https://t.me/222' |
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
{ | |
"python.pythonPath": "/root/miniconda3/bin/python", | |
"terminal.integrated.shell.linux": "/run/current-system/sw/bin/conda-shell", | |
"code-runner.runInTerminal": true, | |
"python.terminal.activateEnvironment": false, | |
"code-runner.executorMap": { | |
"python": "python -u $fullFileName" | |
}, | |
"python.jediEnabled": false | |
} |