Skip to content

Instantly share code, notes, and snippets.

View Neelam96's full-sized avatar

Neelam Sharma Neelam96

View GitHub Profile
import sys
import os
import random
import matplotlib
# Make sure that we are using QT5
matplotlib.use('Qt5Agg')
from PyQt5 import QtCore, QtWidgets
import numpy as np
import matplotlib
@samueljon
samueljon / toggleHT.sh
Last active February 10, 2026 07:07
Disable / Enable HyperThreading cores on runtime - linux
#!/bin/bash
HYPERTHREADING=1
TABLE_VIEW=0 # Default to list view
AUTO_MODE=0 # Automatic enable/disable without prompt
# Color codes
BOLD='\033[1m'
GREEN='\033[0;32m'
RED='\033[0;31m'