start new:
tmux
start new with session name:
tmux new -s myname
/** | |
* @param $app | |
* @return int: | |
* -4: Error | |
* -3: Googlebot | |
* -2: Found locally, not a VPN | |
* -1: Looked up, not a VPN | |
* 1: Looked up, VPN | |
* 2: Found locally, VPN | |
*/ |
#!/usr/bin/env python | |
'''Using Webhook and self-signed certificate''' | |
# This file is an annotated example of a webhook based bot for | |
# telegram. It does not do anything useful, other than provide a quick | |
# template for whipping up a testbot. Basically, fill in the CONFIG | |
# section and run it. | |
# Dependencies (use pip to install them): | |
# - python-telegram-bot: https://github.com/leandrotoledo/python-telegram-bot |
import argparse | |
import re | |
from multiprocessing.pool import ThreadPool as Pool | |
import requests | |
import bs4 | |
root_url = 'http://pyvideo.org' | |
index_url = root_url + '/category/50/pycon-us-2014' | |