Fork of https://gitlab.com/grublets/youtube-updater-for-pi-hole
This fork has
- Looking sqlite db for youtube domains instead of log file
- Support for googlevideo.com and gvt1.com
Installation instructions are
from TorCtl import TorCtl | |
import urllib2 | |
user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7' | |
headers={'User-Agent':user_agent} | |
def request(url): | |
def _set_urlproxy(): | |
proxy_support = urllib2.ProxyHandler({"http" : "127.0.0.1:8118"}) | |
opener = urllib2.build_opener(proxy_support) |
Fork of https://gitlab.com/grublets/youtube-updater-for-pi-hole
This fork has
Installation instructions are
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from collections import namedtuple | |
from datetime import timedelta | |
import json | |
import datetime | |
import re | |
import sys | |
import getopt |
Fork of https://gitlab.com/grublets/youtube-updater-for-pi-hole
This for has
Installation instructions are
#/bin/bash | |
# Shell script to get a Live cricket score from www.espncricinfo.com | |
# To help Cricket fan DevOPS see the score on his Terminal. | |
# Thanks to ESPN SPORTS MEDIA LTD for their RSS feed. | |
# | |
# Author : Arul <mailto:me@arulraj.net> | |
function get_html() { | |
local html=$(curl -k -L -s $1) | |
echo "$html" |
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
try: | |
from urllib.request import Request, urlopen | |
except ImportError: # python 2 | |
from urllib2 import Request, urlopen | |
import re | |
import os |
GUNICORN_CMD_ARGS=--capture-output --error-logfile - --access-logfile - --access-logformat '%(h)s %(t)s %(r)s %(s)s Host: %({Host}i)s}' |
# -*- coding: utf-8 -*- | |
import tweepy # https://github.com/tweepy/tweepy | |
import json | |
import csv | |
import sys | |
# Twitter API credentials | |
consumer_key = "your_consumer_key" | |
consumer_secret = "your_consumer_secret" |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
__author__ = 'arul' | |
""" | |
program to verify email address from http://verify-email.org/ | |
""" | |
import requests |