Skip to content

Instantly share code, notes, and snippets.

View themagicalmammal's full-sized avatar
🖲️
Take a chill pill man!!!

Dipan Nanda themagicalmammal

🖲️
Take a chill pill man!!!
View GitHub Profile
@tur1ngb0x
tur1ngb0x / qt-theme-fix.md
Last active August 14, 2023 07:40
Fixing theming issues on QT apps on any desktop environment

Fixing theming issues on QT apps on any desktop environment

Install Breeze package (qt theme, gtk theme, styles, icons)

Arch

sudo pacman -S breeze breeze-gtk

Debian

@themagicalmammal
themagicalmammal / Visible
Last active April 26, 2021 23:43
Visible bloat in OOS/H2OS
# Amazon Kindle
pm uninstall --user 0 com.amazon.kindle
# Amazon Shopping
pm uninstall --user 0 in.amazon.mShop.android.shopping
# Android Auto
pm uninstall --user 0 com.google.android.projection.gearhead
# Assistant
@themagicalmammal
themagicalmammal / intel-undervolt.conf
Last active February 25, 2023 18:12
Intel Undervolt Config for i5-7200U Intel Graphics 620 (/etc/intel-undervolt.conf)
# Enable or Disable Triggers (elogind)
# Usage: enable [yes/no]
enable yes
# CPU Undervolting
# Usage: undervolt ${index} ${display_name} ${undervolt_value}
# Example: undervolt 2 'CPU Cache' -25.84
undervolt 0 'CPU' -90
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active July 15, 2024 01:29
Set of optimizations, I use on my Artix Setup
@themagicalmammal
themagicalmammal / .bashrc
Created December 22, 2021 05:23
My Bash (Void Setup)
# .bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
eval "$(starship init bash)"
# Awesome Alias
## System commands
alias _='sudo'
alias ls='ls --color=auto'
@themagicalmammal
themagicalmammal / .zshrc
Created December 22, 2021 05:24
My Zsh (Void Setup)
## Path section
# Set $PATH if ~/.local/bin exist
if [ -d "$HOME/.local/bin" ]; then
export PATH=$HOME/.local/bin:$PATH
fi
eval "$(starship init zsh)"
function set_win_title(){
echo -ne "\033]0; $USER@$HOST:${PWD/$HOME/~} \007"
}
@themagicalmammal
themagicalmammal / starship.toml
Last active May 23, 2024 13:20
Starship configuration file
[username]
format = " [╭─$user]($style) on "
style_user = "bold bright-green"
style_root = "bold green"
show_always = true
[hostname]
format = "[$hostname]($style) in "
style = "bold purple"
trim_at = "-"
@themagicalmammal
themagicalmammal / xorg.conf
Created February 26, 2022 15:30
Xorg Config for au620tx (Intel UHD 620 + Nvidia 940mx)
Section "Device"
Identifier "iGPU"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "True"
Option "Tiling" "True"
Option "SwapbuffersWait" "True"
Option "DRI" "3"
EndSection
@themagicalmammal
themagicalmammal / hexagon.py
Created October 16, 2022 07:58
Write a python script to output the below figure on the command prompt. Follow the most creative and efficient way to do this.
#!/usr/bin/python
# -*- coding: utf-8 -*-
def hexagon(width, height, half=0):
i = 0
top = 1
bottom = 1
if half == 1:
top = 0