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 argparse | |
import json | |
import subprocess | |
from haralyzer import HarParser, HarPage | |
def get_dns_response(domain): | |
output = subprocess.check_output(["dig", "+short", domain], text=True) | |
return [l.strip() for l in output.split("\n") if len(l.strip()) > 0] |
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 socket | |
import ssl | |
from cryptography import x509 | |
from cryptography.hazmat.primitives import hashes | |
hostnames = [ | |
"expired.badssl.com", | |
"untrusted-root.badssl.com", |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Read the Docs is down for maintenance</title> | |
<style> | |
html { | |
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif; | |
font-size: 16px; |
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
""" | |
Process the MaxMind GeoLite2 IPv4 and IPv6 blocks CSVs | |
into a single CSV with network and broadcast addresses | |
calculated | |
STEPS | |
* Download the MaxMind GeoLite2 city databases: | |
http://dev.maxmind.com/geoip/geoip2/geolite2/ | |
* Run this program to calculate network and broadcast | |
addresses for each IP network entry |
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 __future__ import print_function, unicode_literals | |
import requests | |
from requests.exceptions import RequestException | |
def request_url(url): | |
try: | |
return requests.get(url) | |
except RequestException as e: |
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
diff --git a/datdota.com/heroes/elo.html b/datdota.com/heroes/elo.html | |
index 39b37d2..8518f93 100644 | |
--- a/datdota.com/heroes/elo.html | |
+++ b/datdota.com/heroes/elo.html | |
@@ -316,7 +316,7 @@ Help! | |
<hr> | |
<div class="ibox float-e-margins"> | |
<form method="get" class="form-horizontal"> | |
-<div class="col-md-4"> | |
+<div class="col-lg-6 col-md-12"> |
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
diff --git a/datdota.com/heroes/elo.html b/datdota.com/heroes/elo.html | |
index 39b37d2..0656554 100644 | |
--- a/datdota.com/heroes/elo.html | |
+++ b/datdota.com/heroes/elo.html | |
@@ -664,7 +664,7 @@ Help! | |
<div class="col-md-12"> | |
<div class="hr-line-dashed"></div> | |
<h3>Results</h3> | |
-<div class="table-responsive col-md-4"> | |
+<div class="table-responsive col-lg-4"> |
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
diff --git a/datdota.com/index.html b/datdota.com/index.html | |
index 7c0a5b9..f088996 100644 | |
--- a/datdota.com/index.html | |
+++ b/datdota.com/index.html | |
@@ -413,6 +413,15 @@ Help! | |
</div> | |
</nav> | |
<div id="page-wrapper" class="gray-bg dashbard-1"> | |
+ | |
+<div class="row border-bottom"> |
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
""" | |
Writes all the tags and commits from a repository to JSON | |
""" | |
import base64 | |
import json | |
import sys | |
from datetime import datetime | |
import pygit2 |
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 json | |
import sys | |
from datetime import datetime | |
import pygit2 | |
def main(repository): | |
repo = pygit2.Repository(repository) |
NewerOlder