Skip to content

Instantly share code, notes, and snippets.

View m1st0's full-sized avatar

Maulik Mistry m1st0

View GitHub Profile
@m1st0
m1st0 / php_build_ubuntu.sh
Last active July 29, 2025 22:45
Compiling PHP 8 on Ubuntu 25.04 with module support and optimized compilation. Included MariaDB and MySQL compatibility.
#!/bin/bash
# PHP 8 Compile #
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# References:
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
# root-talis https://gist.github.com/root-talis/40c4936bf0287237839ccd3fdfdaec28
#
@m1st0
m1st0 / performance_switch_cpu.sh
Last active August 4, 2017 08:57
Switch governors for intel_pstate drivers in KDE.
#! /bin/bash
# Allows for switching governors in intel_pstate drivers in KDE.
#
# Author: Maulik Mistry
# Date: Aug 04, 2017
# References: https://wiki.archlinux.org/index.php/CPU_frequency_scaling#Scaling_governors
# Requires: KDE, libnotify-bin, cpupower
#
# License: BSD License 2.0
@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 <[email protected]>
https://github.com/m1st0
@m1st0
m1st0 / fix_sharedlib_symlinks.sh
Last active June 27, 2024 08:52
Fix broken links with only their basename in shared libraries.
# 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 / 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
@m1st0
m1st0 / LICENSE.txt
Last active July 27, 2025 11:46
Fix /etc/apt/sources.list.d/ sources files with suite/release and key updates.
BSD 2-Clause License
Copyright (c) 2025, Maulik Mistry
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
@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