Skip to content

Instantly share code, notes, and snippets.

View m1st0's full-sized avatar

Maulik Mistry m1st0

View GitHub Profile
@m1st0
m1st0 / toggleHT.sh
Last active May 21, 2019 15:00 — forked from samueljon/toggleHT.sh
Disable / Enable HyperThreading cores on runtime - linux
#!/bin/bash
# Turn hyperthreading on or off.
HYPERTHREADING=1
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[0;33m"
ENDCOLOR="\033[0m"
function toggleHyperThreading() {
@m1st0
m1st0 / flatpak_alias_cli.py
Last active September 12, 2023 16:15
Automatic FlatPak CLI Aliases
#!/usr/bin/python3
"""
flatpak_directory_alias.py
================
Description: Enable ability to run flatpak apps from BASH aliases using flatpak directory names.
Copyright (C) 2023 Maulik Mistry <mistry01@gmail.com>
https://github.com/m1st0
# Setup fzf in Ubuntu from 24.04 and above.
# Soft link to the full path of this script
# from ".fzf.bash" using "ln -s"
# Source the softlink ".fzf.bash" in your ".bashrc"
#
# From https://www.josean.com/posts/7-amazing-cli-tools
#
# Copyright (C) 2024 Josean Martinez
# https://github.com/josean-dev
# https://www.youtube.com/channel/UC_NZ6qLS9oJgsMKQhqAkg-w
@m1st0
m1st0 / fix_sharedlib_symlinks.sh
Last active June 27, 2024 08:52
Fix broken links with only their basename in shared libraries.
@m1st0
m1st0 / aptsearch.zsh
Last active January 31, 2025 01:26
Helping "apt search" become more readable.
#!/usr/bin/env zsh
# Highlight "apt search" and simplify for current CLI.
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# License: BSD License 2.0
# Copyright (c) 2025, Maulik Mistry
# All rights reserved.
#
@m1st0
m1st0 / i915_pri_wm_latency.sh
Last active February 24, 2025 21:52
Fix CPU pipe B FIFO underrun (screen goes black for a few seconds).
#!/usr/bin/env bash
# Fix CPU pipe B FIFO underrun (screen goes black for a few seconds).
# Reference: https://gitlab.freedesktop.org/drm/intel/-/issues/5455
#
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# License: BSD License 2.0
# Copyright (c) 2023–2025, Maulik Mistry
#!/usr/bin/env zsh
# Simplified Nvidia card management on Ubuntu 25.04
# provided drivers are installed correctly from other script.
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# License: BSD License 2.0
# Copyright (c) 2023–2025, Maulik Mistry
# All rights reserved.
@m1st0
m1st0 / nvidia-kernel-common-570
Last active July 2, 2025 08:44
Install the proper Nvidia drivers against service conflicts for Wayland
Package: nvidia-kernel-common-570
Version: 0.0.1
Provides: nvidia-kernel-common-570
Conflicts: nvidia-kernel-common-570
@m1st0
m1st0 / kdenlive.zsh
Last active July 2, 2025 09:20
Launch Kdenlive under Nvidia in Ubuntu 25.04
#!/usr/bin/zsh
# Launch Kdenlive under Nvidia in Ubuntu 25.04
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# License: BSD License 2.0
# Copyright (c) 2023–2025, Maulik Mistry
# All rights reserved.
#
@m1st0
m1st0 / blender.zsh
Last active July 2, 2025 09:21
Launch Blender under Nvidia in Ubuntu 25.04
#!/usr/bin/zsh
# Launch Blender under Nvidia in Ubuntu 25.04
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# License: BSD License 2.0
# Copyright (c) 2023–2025, Maulik Mistry
# All rights reserved.
#