View settings.json
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 | |
} |
View gist:3915d28a785077c38005341d50250a45
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' |
View main.py
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 |
View add_user.sh
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 |
View bird2 systemd
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 |
View openwrt bird
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" |
View gist:15ffdb6e0805b26f7a9efe271ab0de5d
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 |
View kagami3.py
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 |