Skip to content

Instantly share code, notes, and snippets.

Avatar

Curtis Jiang jqqqqqqqqqq

  • Brown University
View GitHub Profile
View gist:3915d28a785077c38005341d50250a45
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'
@jqqqqqqqqqq
jqqqqqqqqqq / main.py
Created Apr 13, 2020
telegram @whatismyoptstatusbot opt status lookup
View main.py
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
@jqqqqqqqqqq
jqqqqqqqqqq / add_user.sh
Created Jul 9, 2019
Nginx http auth without apache util
View add_user.sh
#!/bin/bash
# read username
read -p "Username: " username
# read password twice
read -s -p "Password: " password
echo
read -s -p "Password (again): " password2
@jqqqqqqqqqq
jqqqqqqqqqq / bird2 systemd
Created Sep 6, 2018
bird2 systemd from arch linux
View bird2 systemd
[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
@jqqqqqqqqqq
jqqqqqqqqqq / openwrt bird
Created Jul 31, 2018
bird2 init.d script with restart option
View openwrt bird
#!/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
function catz # cat without '#' lines
cat $argv | grep -v "^#"
end
@jqqqqqqqqqq
jqqqqqqqqqq / kagami3.py
Created Sep 10, 2017 — forked from blueset/kagami3.py
Utsushidasu Kagami ver 3
View kagami3.py
import telegram
import telegram.ext
import re
# Utsushidasu Kagami Bot v3
# With sticker removal and off-topic transfer.
# License: MIT
"""
Copyright 2017 Eana Hufwe
You can’t perform that action at this time.