Skip to content

Instantly share code, notes, and snippets.

View m1st0's full-sized avatar

Maulik Mistry m1st0

View GitHub Profile
@m1st0
m1st0 / fix_sharedlib_symlinks.sh
Created September 12, 2023 16:02
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 <mistry01@gmail.com>
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
#