Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
Yeehaw.

Major Hayden major

🤠
Yeehaw.
View GitHub Profile
@major
major / azure-cli-core-test-output.txt
Created Jun 24, 2022
azure-cli-core test output on 3.11.0b3
View azure-cli-core-test-output.txt
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 '
+ PATH=/builddir/build/BUILDROOT/azure-cli-2.37.0-1.fc37.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
+ PYTHONPATH=/builddir/build/BUILDROOT/azure-cli-2.37.0-1.fc37.noarch/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/azure-cli-2.37.0-1.fc37.noarch/usr/lib/python3.11/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/azure-cli-azure-cli-2.37.0/.pyproject-builddir'
+ /usr/bin/pytest -n auto src/azure-cli-
View gist:899d8cbca4992f0580853413f5f91634
In [10]: yf.Ticker("NQ=F").info
Out[10]:
{'exchange': 'CME',
'shortName': 'Nasdaq 100 Jun 22',
'exchangeTimezoneName': 'America/New_York',
'exchangeTimezoneShortName': 'EDT',
'isEsgPopulated': False,
'gmtOffSetMilliseconds': '-14400000',
'underlyingSymbol': 'NQM22.CME',
'quoteType': 'FUTURE',
@major
major / charts.md
Last active Jan 21, 2022
Market Breadth Indicators
View charts.md
Data Chart
NYSE Advancing/Declining Issues https://stockcharts.com/c-sc/sc?s=%24NYAD&p=D&yr=2&mn=0&dy=0&i=t3086755984c
NASDAQ Advancing/Declining Issues https://stockcharts.com/c-sc/sc?s=%24NAAD&p=D&yr=2&mn=0&dy=0&i=t3086755984c
NYSE > 200MA https://stockcharts.com/c-sc/sc?s=%24NYA200R&p=D&yr=2&mn=0&dy=0&i=t4929537461c
NASDAQ > 200MA https://stockcharts.com/c-sc/sc?s=%24NAA200R&p=D&yr=2&mn=0&dy=0&i=t4929537461c
Dow > 200MA https://stockcharts.com/c-sc/sc?s=%24DOWA200R&p=D&yr=2&mn=0&dy=0&i=t4929537461c
@major
major / screenshot-upload.sh
Created Nov 19, 2021
Screenshot uploads to Backblaze B2 with Cloudflare CDN caching
View screenshot-upload.sh
#!/bin/bash
set -euxo pipefail
# Set up the local filename and path.
FILE_STRING=$(date +%s | sha256sum | cut -c1-8)
FILE_NAME="${FILE_STRING}.png"
SCREENSHOT_PATH="/home/major/Pictures/screenshots/${FILE_NAME}"
# Configure the B2/CDN details.
CDN_URL="https://cdn.major.io"
View solar_puts.md
Ticker Strike Exp Date DTE Bid PoP % Ret. % Annual %
SPWR_011521P27 27 2021-01-15 7 0.58 75.1 2.2 114.5
SPWR_011521P26.5 26.5 2021-01-15 7 0.44 79.1 1.7 88
SPWR_011521P26 26 2021-01-15 7 0.35 82.7 1.4 71.2
SPWR_011521P25.5 25.5 2021-01-15 7 0.29 85.6 1.2 60
SPWR_011521P25 25 2021-01-15 7 0.22 88.5 0.9 46.3
TAN_021921P103 103 2021-02-19 42 4.4 75.5 4.5 38.8
CSIQ_011521P50.5 50.5 2021-01-15 7 0.35 85.9 0.7 36.4
TAN_021921P102 102 2021-02-19 42 4 76.8 4.1 35.5
View foo.md
Ticker Strike Exp Date DTE Bid PoP % Ret. % Annual %
CSIQ_011521P52.5 52.5 2021-01-15 7 0.7 75.9 1.4 70.5
CSIQ_011521P52 52 2021-01-15 7 0.6 78.8 1.2 60.9
CSIQ_011521P51.5 51.5 2021-01-15 7 0.45 81 0.9 46
CSIQ_011521P51 51 2021-01-15 7 0.4 83.8 0.8 41.2
ENPH_021921P175 175 2021-02-19 42 7.8 77.4 4.7 40.5
TAN_021921P103 103 2021-02-19 42 4.4 75.5 4.5 38.8
CSIQ_011521P50.5 50.5 2021-01-15 7 0.35 85.9 0.7 36.4
TAN_021921P102 102 2021-02-19 42 4 76.7 4.1 35.5
View foo.md
Ticker Strike Exp Date DTE Bid PoP % Ret. % Annual %
NIO_011521P54 54 2021-01-15 7 1.86 71.9 3.6 186
NIO_011521P53.5 53.5 2021-01-15 7 1.67 73.8 3.2 168
NIO_011521P53 53 2021-01-15 7 1.51 75.7 2.9 152.9
NIO_011521P52.5 52.5 2021-01-15 7 1.35 77.6 2.6 137.6
NIO_011521P52 52 2021-01-15 7 1.2 79.4 2.4 123.2
NIO_011521P51.5 51.5 2021-01-15 7 1.07 81.1 2.1 110.6
NIO_011521P51 51 2021-01-15 7 0.95 82.8 1.9 99
NIO_011521P50.5 50.5 2021-01-15 7 0.84 84.3 1.7 88.2
@major
major / investing.md
Last active Dec 29, 2020
Major's investment links
View investing.md
@major
major / big-fella.txt
Created Aug 18, 2020
Big fella depsolve
View big-fella.txt
[root@composer ~]# composer-cli blueprints depsolve big-fella
blueprint: big-fella v0.0.9
python3-ethtool-0.14-3.el8.x86_64
libevent-2.1.8-5.el8.x86_64
libassuan-2.5.1-3.el8.x86_64
perl-Scalar-List-Utils-3:1.49-2.el8.x86_64
perl-PathTools-3.74-1.el8.x86_64
libusbx-1.0.22-1.el8.x86_64
json-glib-1.4.4-1.el8.x86_64
snappy-1.1.7-5.el8.x86_64
@major
major / weather.sh
Created Jul 29, 2020
Weather + alerts lookup for i3 status bar
View weather.sh
#!/bin/bash
WTTR_URL="http://wttr.in/KRND?format=j1"
WTTR_JSON=/tmp/weather-wttr.json
ALERTS_URL=https://api.weather.gov/alerts/active/zone/TXZ207
ALERTS_JSON=/tmp/weather-alerts.json
UPDATE_JSON=yes
if [[ -f $WTTR_JSON ]]; then