Skip to content

Instantly share code, notes, and snippets.

View nhubbard's full-sized avatar
💭
🤖 Finding reasons to stay busy

Nicholas Hubbard nhubbard

💭
🤖 Finding reasons to stay busy
View GitHub Profile
# Set your OPNsense API credentials
$APIKey = "API_KEY"
$APISecret = "API_SECRET"
$OPNsenseIP = "192.168.100.1"
# Base URI for OPNsense API
$BaseUri = "https://$OPNsenseIP/api"
# Function to send API requests
function Send-ApiRequest {
@nhubbard
nhubbard / PRIVACY.md
Created February 14, 2024 19:26
Sort Visualizer Privacy Policy

Sort Visualizer Privacy Policy

This app only collects final benchmark information when a sorting operation is finished. None of this information is associated with unique characteristics of you or your device.

These are the only pieces of information that this app will collect:

  • The model of your device (ex.: "MacBookPro18,1"). This is an extremely generic piece of information and cannot be used to identify you in any way, shape, or form.
  • The exact time when the sorting operation finished
  • The sorting algorithm that was run
  • The number of items you chose to sort
@nhubbard
nhubbard / mars.txt
Created January 19, 2024 14:55
MARS assembly spec
# MARS Assembly Specification
## Basic Instructions
### Branch
* bc1f 1, label
* bc1t 1, label
* bc1f label
* bc1t label
@nhubbard
nhubbard / knuth_gpt.md
Last active May 21, 2023 18:57
Don Knuth Plays with ChatGPT (ft. Stephen Wolfram)

Preface

Since one of today's popular recreations is to play with ChatGPT, I decided on 07 April 2023 to try my own little experiment, as part of a correspondence with Stephen Wolfram.

The results were sufficiently interesting that I passed them on to a few friends the next day, and I've also been mentioning them in conversation when the topic comes up.

So I was asked to post the story online, and here it is (lightly edited)!

-- Don Knuth

@nhubbard
nhubbard / resume.json
Last active April 6, 2023 16:12
My resume.
{
"meta": {
"theme": "actual"
},
"basics": {
"name": "Nicholas Hubbard",
"label": "Software Developer",
"email": "[email protected]",
"phone": "(586) 383-3499",
"summary": "I am a junior at Gannon University, pursing a career in software engineering and cybersecurity. I have significant experience in multiple domains of computer science and systems administration.",
@nhubbard
nhubbard / ASSIGNMENT1.md
Created January 10, 2020 18:03
AP Computer Science: Assignment 1

AP CS Assignment 1

Nicholas Hubbard

Natural Numbers, Naturally

Code:

@nhubbard
nhubbard / tensorflow.py
Created May 29, 2019 19:11
Benchmarking code for VTK model
import numpy as np
import tensorflow as tf
import cv2 as cv
from time import time
import sys, os
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
cap = cv.VideoCapture(int(sys.argv[2]))
lat = []
# Read the graph.
with open(sys.argv[1], 'rb') as f:
04b402d5ac0b0fd1c48ace436fbb5440c82f85454d7e08b3c7a9bc85c38329b3e0e8536f4b4a8537ed1bddd667e1592cb93e010b37026fd3bea1079dc50124008d
@nhubbard
nhubbard / binwalk.log
Created February 3, 2018 16:11
Binwalk log from the file I'm trying to extract.
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 Linux EXT filesystem, rev 0.0, ext2 filesystem data, UUID=00000000-0000-0000-0000-000000000000
9768 0x2628 Unix path: /etc/natinst/share/ssh/ssh_host_dsa_key
15400 0x3C28 Unix path: /usr/lib/busybox/sbin/acpid
27432 0x6B28 Unix path: /usr/lib/busybox/usr/sbin/addgroup
27944 0x6D28 Unix path: /usr/sbin/readprofile.util-linux
29352 0x72A8 Unix path: /usr/lib/busybox/usr/bin/printf
356352 0x57000 ELF, 32-bit LSB relocatable, ARM, version 1 (SYSV)
@nhubbard
nhubbard / ApplicationsEulerCCI.ipynb
Last active January 16, 2018 15:45
Applications of Euler's number using continually compounded interest.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.