This file contains hidden or 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 requests | |
import json | |
import os | |
import time | |
def read_nvd(uri_params): | |
url = f'https://services.nvd.nist.gov/rest/json/cves/2.0?{uri_params}' | |
if os.path.isfile(f"nvd-cves.{uri_params}.json"): | |
with open(f"nvd-cves.{uri_params}.json", "r", encoding="utf-8") as fp: | |
data = json.load(fp) |
This file contains hidden or 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
#!/bin/bash | |
# This code is based on the awesome answer by @torek from StackOverflow: | |
# https://stackoverflow.com/a/41626019/195417 | |
# I have only made a shell for his code, added some options, added some colors | |
# and voilà! | |
# | |
# This script can be used to find large files inside a git repository | |
# and it's whole history. It will list files larger than a given threshold, | |
# and display these files in a colored human readable way. | |
# |
This file contains hidden or 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
# based on sample by: Roberto Colistete Jr. | |
# extended with animation by: MASBicudo () | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import matplotlib.animation as animation | |
from pylab import * | |
############################################################################## | |
## Personalize your plot parameters here. |