Skip to content

Instantly share code, notes, and snippets.

View pdxjohnny's full-sized avatar
🐢
Rolling Alice...

John Andersen pdxjohnny

🐢
Rolling Alice...
View GitHub Profile
{
"includeMatchStringChange": "true",
"modEndDate": "2022-11-17T02:02:50:558 UTC-00:00",
"modStartDate": "2022-11-15T02:00:50:553 UTC-00:00",
"resultsPerPage": 2000,
"startIndex": 2000
}
diff --git a/cve_bin_tool/nvd_api.py b/cve_bin_tool/nvd_api.py
index 4a432a2..c2f2d98 100644
--- a/cve_bin_tool/nvd_api.py
+++ b/cve_bin_tool/nvd_api.py
@@ -8,6 +8,7 @@ Parameter values and more information: https://nvd.nist.gov/developers/products
"""
import asyncio
+import hashlib
import json
@pdxjohnny
pdxjohnny / gist:51177dca5e91284c7db0827f1b2a786b
Created November 16, 2022 18:08
alice: Replace key with URL to ensure if we are coming from GitHubId
diff --git a/src/python/alice/alice_intel/intel/innersource/mongodb.py b/src/python/alice/alice_intel/intel/innersource/mongodb.py
index ebc2d1a..ae835ca 100644
--- a/src/python/alice/alice_intel/intel/innersource/mongodb.py
+++ b/src/python/alice/alice_intel/intel/innersource/mongodb.py
@@ -33,6 +33,11 @@ class InnerSourceMetricsMongoDBSourceConfig:
# for Context.
class InnerSourceMetricsMongoDBSourceContext(BaseSourceContext):
async def update(self, record):
+ # Replace key with URL to ensure if we are coming from GitHubId or
+ # something else indirectly as the context which was transformed (likely
diff --git a/cve_bin_tool/nvd_api.py b/cve_bin_tool/nvd_api.py
index 4a432a2..196395c 100644
--- a/cve_bin_tool/nvd_api.py
+++ b/cve_bin_tool/nvd_api.py
@@ -8,6 +8,7 @@ Parameter values and more information: https://nvd.nist.gov/developers/products
"""
import asyncio
+import hashlib
import json
{
"includeMatchStringChange": "true",
"modEndDate": "2022-11-16T00:42:21:458 UTC-00:00",
"modStartDate": "2022-11-14T00:40:18:369 UTC-00:00",
"resultsPerPage": 2000,
"startIndex": 4000
}
$ nvd_api_key=$NVD_API_KEY LONG_TESTS=1 timeout 10s python3.10 -um pytest -v --log-level=DEBUG --log-cli-level=DEBUG test/test_nvd_api.py 2>&1 | tee >(gh gist create -p -d 'Failure to launch NVD API tests: https://github.com/intel/cve-bin-tool/issues/2334')
============================= test session starts ==============================
platform linux -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /home/pdxjohnny/Documents/python/cve-bin-tool, configfile: setup.cfg
plugins: xdist-3.0.2, cov-4.0.0, mock-3.10.0, base-url-2.0.0, asyncio-0.20.2, playwright-0.3.0
asyncio: mode=strict
collecting ... collected 5 items
timeout: failed to run command ‘python’: No such file or directory
sudo dnf -y upgrade
sudo dnf -y install python3.10 python3.10-pip
python3.10 -m pip install -U pip setuptools wheel
python3.10 -m pip install asciinema
alias python=python3.10
echo "alias python=python3.10" | tee -a ~/.bashrc
curl -sfL https://github.com/pdxjohnny/pdxjohnny.github.io/raw/dev/content/posts/tricks.md | tee trick.md
curl -sfL https://github.com/pdxjohnny/pdxjohnny.github.io/raw/dev/content/posts/dev-environment.md | tee dev-environment.md
NAME_FIRST_LAST="John Andersen"
EMAIL=johnandersenpdx@gmail.com

Rolling Alice: Progress Report 1: Where are we

https://www.youtube.com/watch?v=dI1oGv7K21A&list=PLtzAOVTpO2jYt71umwc-ze6OmwwCIMnLw

Okay, so we are going to do our series of tutorials on building Alice, our software architect. And so as a part of that we're going to do a bunch of engineering log videos, just the same as we do the weekly sync stuff. So this is going to be not like the weekly sync where we do, you know, it's more of like an office hours. This is more of, you know, whoever's working on something will stream what they're working on so that there's, you know, basically like you can