Skip to content

Instantly share code, notes, and snippets.

View william20111's full-sized avatar

William Fleming william20111

View GitHub Profile
# Latest settings documentation: https://github.com/aol/moloch/wiki/Settings
#
# Moloch uses a tiered system for configuration variables. This config file has
# removed any unused elements. refer to docs for more information
[default]
# Comma seperated list of elasticsearch host:port combinations. If not using a
# Elasticsearch load balancer, a different elasticsearch node in the cluster can be specified
# for each Moloch node to help spread load on high volume clusters. For user/password

Keybase proof

I hereby claim:

  • I am william20111 on github.
  • I am billtux (https://keybase.io/billtux) on keybase.
  • I have a public key whose fingerprint is 388F 921D 5238 2940 264D B391 B3D0 9566 C35C 46EA

To claim this, I am signing this object:

# !/bin/bash
# Name: check_bond
# Description : Icinga script to check the current status of network bonds
# Version : 1.0
# Author : William Fleming
# License : BSD
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
from bs4 import BeautifulSoup
from urllib import request
link = 'http://www.scottishrugby.org/fixtures-results?competition=98778&qt-fixtures_results_list=2#qt-fixtures_results_list'
x = request.urlopen(link)
html = x.read()
soup = BeautifulSoup(html)
league = []
table = soup.find("table", {"class": "sticky-enabled"})
for row in table:
#!/usr/bin/python3
import click
import logging
import datetime
FORMAT='%(asctime)s %(message)s'
fmt='%m/%d/%Y %I:%M:%S %p'
logging.basicConfig(format=FORMAT, filename='/home/william/.timemanagement.log',level=logging.DEBUG, datefmt=fmt)