Skip to content

Instantly share code, notes, and snippets.

View robertpostill's full-sized avatar

Robert Postill robertpostill

View GitHub Profile
#!/bin/sh
#
# Run an arbitary script on the machine
# Where the git repo is, optionally could be set from outside ENV? Not sure how that would work in cron
GIT_DIR=<put your code location here>
cd $GIT_DIR
exit 0
@robertpostill
robertpostill / cve-search.rkt
Last active July 19, 2020 08:42
A quickscript script to get the details of CVEs
#lang racket/base
(require quickscript)
(require racket/string)
(require net/url)
(require json)
(define LAST-30-CVES-ENDPOINT "https://cve.circl.lu/api/last")
(define SPECIFIC-CVE-ENDPOINT "https://cve.circl.lu/api/cve/") ; e.g. https://cve.circl.lu/api/cve/CVE-2010-3333
(define CVE-REGEXP #px"CVE-\\d{4}-\\d{4}")