Skip to content

Instantly share code, notes, and snippets.

View nfl0's full-sized avatar
😋

nfl0

😋
View GitHub Profile
@nfl0
nfl0 / main.py
Created April 11, 2023 12:13
Don't sell in May, stay invested! #SellinMayAndGoAway
import requests
import pandas as pd
from scipy.stats import ttest_ind
# set up Coingecko API endpoint
base_url = "https://api.coingecko.com/api/v3"
endpoint = "/coins/bitcoin/market_chart"
# set number of days to retrieve historical data for
days = "max"
@Sporif
Sporif / nvidia-gpu-sensor.pl
Last active July 21, 2023 06:47 — forked from hacker1024/nvidia-gpu-sensor.pl
KDE KSysGuard NVIDIA GPU temperature/memory/utilization sensor, based on @frantic1048's script, but with units and total memory detection.
#!/usr/bin/perl -w
# act as a KSysGuard sensor
# provides NVIDIA GPU info via `nvidia-smi`
# Usage:
# 1. Save this script, make it executable and move it to a directory in your $PATH
# 2. Save this ksysguard sensor file for Nvidia: https://gist.github.com/Sporif/31f0d8d9efc3315752aa4031f7080d79
# 2. In KSysGuard's menu, open "File > Import Tab From File option"
# 3. Open the sensor file (nvidia.srgd)