Skip to content

Instantly share code, notes, and snippets.

View major's full-sized avatar
🤠
Yeehaw.

Major Hayden major

🤠
Yeehaw.
View GitHub Profile
@major
major / market_report.md
Created January 12, 2026 22:18
Market report testing

The Rotation You're Missing: Defense & Aerospace Lead While Tech Giants Stumble

January 12, 2026

While most retail investors fixate on the S&P 500 hitting new 52-week highs, a dramatic rotation is underway beneath the surface that could reshape portfolios in the months ahead. The data tells a story of shifting leadership that contradicts the "just buy tech" narrative that has dominated for years.

Defense Contractors: The Stealth Bull Market

The defense sector is experiencing a historic breakout that few are discussing. ITA (iShares U.S. Aerospace & Defense ETF) relative to SPY has reached its 99th percentile across every timeframe from 52 weeks to 208 weeks—a level of sustained outperformance rarely seen in any sector.

@major
major / ca.py
Last active October 28, 2025 09:27
Making a certificate authority (CA) with python cryptography
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.x509.oid import NameOID
import datetime
import uuid
one_day = datetime.timedelta(1, 0, 0)
private_key = rsa.generate_private_key(
public_exponent=65537,
┌────────┬──────┬─────────────────────────────────────────────────────────────────────┬───────────────────┬──────────────────┐
│ ticker ┆ type ┆ name ┆ days_since_higher ┆ last_higher_date │
│ --- ┆ --- ┆ --- ┆ --- ┆ --- │
│ str ┆ str ┆ str ┆ i64 ┆ date │
╞════════╪══════╪═════════════════════════════════════════════════════════════════════╪═══════════════════╪══════════════════╡
│ AD ┆ CS ┆ Array Digital Infrastructure, Inc. ┆ 0 ┆ null │
│ ALC ┆ CS ┆ Alcon Inc. Ordinary Shares ┆ 2325 ┆ 2019-04-09 │
│ AUUD ┆ CS ┆ Auddia Inc. Common Stock ┆ 0 ┆ null │
│ BAP
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"meta": {
"theme": "macchiato"
},
"basics": {
"name": "Major Hayden",
"label": "Linux Engineer & Security Architect",
"email": "major@example.com",
"phone": "",
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"meta": {
"theme": "flat",
},
"basics": {
"name": "Major Hayden",
"label": "Linux Engineer & Security Architect",
"email": "major@example.com",
"phone": "",
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Major Hayden",
"label": "Linux Engineer & Security Architect",
"email": "major@example.com",
"phone": "",
"url": "https://majorhayden.com",
"summary": "Linux Engineer and Principal Software Engineer with 20+ years of experience in system administration, application development, DevOps, and cybersecurity.",
"location": {
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Major Hayden",
"label": "Linux Engineer & Security Architect",
"image": "",
"email": "major@example.com",
"phone": "",
"url": "https://majorhayden.com",
"summary": "Linux Engineer with skills in database administration, system administration, application development and leadership. Enjoys connecting people with technology solutions that are easy to use, affordable, and sustainable over time. Familiar with, and a huge supporter of, the DevOps culture and how to make it work with a large team in a fast paced environment. Information security has been a key interest, having served as Chief Security Architect leading teams of senior engineers dedicated to increasing security within organizations and for their customers.",
@major
major / gist:2037116
Created March 14, 2012 15:10
pi in domain names
$ p=$(echo "scale=64;4*a(1)"|bc -l);for i in $( seq 4 $((${#p} - 1)) );do echo -n "${p:0:$i}.com: ";echo `dig +short ${p:0:$i}.com|xargs`||echo;done
3.14.com: 98.124.198.1
3.141.com:
3.1415.com:
3.14159.com: 74.94.75.217
3.141592.com: 72.32.231.8
3.1415926.com:
3.14159265.com: 209.51.133.66
3.141592653.com: 184.173.91.228
3.1415926535.com: 68.178.232.99
@major
major / sma_and_vwma.pine
Created February 3, 2025 13:04
SMA/VWMA TradingView Indicator
//@version=6
indicator(title="SMA vs VWMA (thetanerd) 🤓", shorttitle="SMA/VWMA 🤓", overlay=true, timeframe="", timeframe_gaps=true)
// MarketSurge colors by default, just because.
defaultSMAColor = color.new(#e040fb, 0)
defaultVWMAColor = color.new(#2962ff, 0)
// CONFIGURABLES
var GRP0 = "Let's get nerdy because why not? 🤓"
len = input.int(50, minval=1, title="Length", group=GRP0)
@major
major / test.html
Last active March 9, 2024 15:35
Testing TradingView Embeds
# TradingView embed testing
<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container" style="height:100%;width:100%">
<div class="tradingview-widget-container__widget" style="height:calc(100% - 32px);width:100%"></div>
<div class="tradingview-widget-copyright"><a href="https://www.tradingview.com/" rel="noopener nofollow" target="_blank"><span class="blue-text">Track all markets on TradingView</span></a></div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-advanced-chart.js" async>
{
"autosize": true,
"symbol": "XLP/SPY",