Skip to content

Instantly share code, notes, and snippets.

View m1st0's full-sized avatar

Maulik Mistry m1st0

View GitHub Profile
# 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 / 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 / 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 / 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 / php_build_ubuntu.sh
Last active November 25, 2023 07:33
Compiling PHP 8 on Ubuntu 22.10 with Various Supported Modules
#!/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
#