Skip to content

Instantly share code, notes, and snippets.

View major's full-sized avatar
🤠
Yeehaw.

Major Hayden major

🤠
Yeehaw.
View GitHub Profile
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 December 29, 2020 03:33
Major's investment links
@major
major / big-fella.txt
Created August 18, 2020 15:48
Big fella depsolve
[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 July 29, 2020 20:58
Weather + alerts lookup for i3 status bar
#!/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
[root@ip-172-31-9-84 ~]# dnf list all |grep selinux
libselinux.aarch64 2.9-3.el8 @anaconda
libselinux-utils.aarch64 2.9-3.el8 @anaconda
python3-libselinux.aarch64 2.9-3.el8 @anaconda
rpm-plugin-selinux.aarch64 4.14.2-37.el8 @anaconda
selinux-policy.noarch 3.14.3-41.el8_2.2 @anaconda
selinux-policy-targeted.noarch 3.14.3-41.el8_2.2 @anaconda
container-selinux.noarch 2:2.124.0-1.module+el8.2.0+6368+cf16aa14 rhel-8-appstream-rhui-rpms
flatpak-selinux.noarch 1.
~/Downloads ➜ virt-filesystems --all --long -a osbuild-aws-pass.vhdx
Name Type VFS Label MBR Size Parent
/dev/sda1 filesystem xfs - - 6430916608 -
/dev/sda1 partition - - 83 6441402368 /dev/sda
/dev/sda device - - - 6442450944 -
~/Downloads took 8s ➜ virt-filesystems --all --long -a osbuild-aws-fail.vhdx
Name Type VFS Label MBR Size Parent
/dev/sda1 filesystem xfs - - 6430916608 -
/dev/sda1 partition - - 83 6441402368 /dev/sda
/dev/sda device - - - 6442450944 -
@major
major / virt-filesystems.diff
Last active June 30, 2020 17:21
virt-filesystems.diff
--- osbuild-aws-fail.txt 2020-06-30 12:15:32.729293806 -0500
+++ osbuild-aws-pass.txt 2020-06-30 12:20:56.663489113 -0500
@@ -2,9 +2,9 @@
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
-libguestfs: command: run: \ -o backing_file=/home/major/Downloads/osbuild-aws-fail.vhdx
-libguestfs: command: run: \ /tmp/libguestfsKyQtHH/overlay1.qcow2
-Formatting '/tmp/libguestfsKyQtHH/overlay1.qcow2', fmt=qcow2 size=6442450944 backing_file=/home/major/Downloads/osbuild-aws-fail.vhdx cluster_size=65536 lazy_refcounts=off refcount_bits=16
+libguestfs: command: run: \ -o backing_file=/home/major/Downloads/osbuild-aws-pass.vhdx
command: sfdisk '--part-type' '/dev/sda' '1'
command: sfdisk returned 0
command: sfdisk: stdout:
83
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
No filesystem is currently mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
No filesystem is currently mounted on /sys/fs/cgroup.
@major
major / metar_weather.py
Created April 24, 2020 20:03
METAR Weather
#!/usr/bin/env python
import json
from metar import Metar
import metpy.calc as mpcalc
from metpy.units import units
import requests
observation_station = "KRND"
alerts_zone = "TXZ207"
@major
major / metar_weather.py
Created April 22, 2020 14:13
Weather via METAR for i3wm status bar
#!/usr/bin/env python
import json
from metar import Metar
import metpy.calc as mpcalc
from metpy.units import units
import requests
alerts_zone = "TXZ207"