- Unlock manual fan & overclock settings
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
- Reboot system
- Create script
/usr/local/bin/gpu-fan-control.sh
#!/bin/bash
# Non-recursive flatten nested dictionaries in Python3 | |
# Source: https://codereview.stackexchange.com/a/173483/173155 | |
from itertools import chain, starmap | |
def flatten_dict(dictionary): | |
"""Flatten a nested dictionary structure""" | |
def unpack(parent_key, parent_value): |
import pandas as pd | |
from pyspark.sql import DataFrame | |
# Wrapper for seamless Spark's serialisation | |
def spark_to_pandas(spark_df: DataFrame) -> pd.DataFrame: | |
""" | |
PySpark toPandas realisation using mapPartitions | |
much faster than vanilla version | |
fork: https://gist.github.com/lucidyan/1e5d9e490a101cdc1c2ed901568e082b | |
origin: https://gist.github.com/joshlk/871d58e01417478176e7 |
from __future__ import print_function | |
import numpy as np | |
import scipy.linalg | |
from scipy.odr import * | |
import matplotlib as mpl | |
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import pyplot as plt | |
import sys | |
import time |
find ./ -type f \( -iname \*.md -o -iname \*.txt \) -exec grep -Hi 'word' {} +
cat $HOME/.config/sublime-text-3/Local/Auto\ Save\ Session.sublime_session |grep "\"file\":" |sed 's/^[[:space:]]*//g' |sed 's/^\"file\"\: \"//g' |sort -u | sed 's/[\",]*//ig'"
use "MathJax Plugin for Github" Chrome extension for Equation support
author: Evan Haas
2009.12.09
Source
In this three part series I’m going to talk about statistics in the context of A/B Testing. Part I discusses how to analyze experiments using traditional techniques from the frequentist school. Part II will discuss the Bayesian approach, and Part III will provide an implementation of the Bayesian method. Much of the information is adapted from the excellent Information Theory, Inference, and Learning Algorithms by Davi
This Python script is designed to process .vtt
subtitle files obtained using yt-dlp
from YouTube or similar platforms. It merges subtitles with overlapping segments and cleans the text by removing excess whitespace. The script outputs the processed subtitles into a new text file with a timestamped filename.
.vtt
file in the specified directory.