Skip to content

Instantly share code, notes, and snippets.

View gkhays's full-sized avatar

Garve Hays gkhays

View GitHub Profile
@gkhays
gkhays / get_cves_by_year.py
Created May 7, 2025 15:04
Retrieves the CVEs for a given year
def fetch_cves_by_year(year, max_results=None, delay=6):
"""
Fetch CVEs from the NVD API for a specific year.
Args:
year (int): The year to fetch CVEs for
max_results (int, optional): Maximum number of results to return. If None, fetch all.
delay (int, optional): Delay between API requests in seconds to respect rate limits
Returns:
@gkhays
gkhays / pyproject.toml
Last active May 5, 2025 13:09
Retrieves CVE numbers from a Red Hat Security Advisory
[project]
name = "py-rhsa"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"bs4>=0.0.2",
"requests>=2.32.3",
]
@gkhays
gkhays / build.sh
Created November 1, 2022 19:13
Golang Build Script
#!/bin/bash
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build \
-a \
-v \
-trimpath='true' \
-buildmode='exe' \
-buildvcs='true' \
-compiler='gc' \
@gkhays
gkhays / ButtonPush.md
Last active September 21, 2022 22:22
What does it take to push this button?

Are We Going to Push the Button?

tenor-2697319374

GitHub README Statistics

image

Alternatives

I like pie!

Go Go Godzilla

image

@gkhays
gkhays / Top 25 Science Fiction Books.md
Last active May 20, 2022 07:09
Picks for the top 25 science fiction books

The Best 25 Science Fiction Ever Written

(Updated January 2016)

  • Dune, by Frank Herbert
  • The Book of the New Sun, by Gene Wolfe
  • The Moon is a Harsh Mistress, by Robert A. Heinlein
  • The Dispossessed, by Ursula K Le Guin
  • Hyperion, by Dan Simmons
  • Neuromancer, by William Gibson
  • The Stars My Destination, by Alfred Bester
@gkhays
gkhays / DevOps Primer.md
Last active June 1, 2020 14:57
Getting started with DevOps

Dev Ops Primer

Develop Operations or DevOps is a discipline that bridges software development and IT operations.

Tools of the trade

@gkhays
gkhays / Detect GTA V Malware.md
Last active May 17, 2020 19:57
Steps to locate issues with GTA V

Detecting GTA V Issues

Every 5 seconds, GTA V "stutters." The problem does not occur when disconnected from the network.

Also, of interest, The Sims 4 experiences a similar issue.

Detect A Keylogger

The WikiHow article is pretty good. Check for the following processes.