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
@themagicalmammal
themagicalmammal / config.conf
Created October 16, 2023 11:06
/.config/neofetch/config.conf
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
# info title
# info underline
# info "Host" model (2)
#info "host" model
## info "OS" distro (1)
info "os" distro
@themagicalmammal
themagicalmammal / spicetify.sh
Last active February 18, 2023 09:56
Spicetify Installation Script
#!/bin/sh
# Install spicetify-cli
install_spicetify () {
curl -fsSL https://raw.githubusercontent.com/khanhas/spicetify-cli/master/install.sh | sh
export SPICETIFY_INSTALL="$HOME/spicetify-cli"
export PATH="$SPICETIFY_INSTALL:$PATH"
echo 'export SPICETIFY_INSTALL="$HOME/spicetify-cli"' >> ~/.profile
echo 'export PATH="$SPICETIFY_INSTALL:$PATH"' >> ~/.profile
echo "Program installed, Configuring...."
@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
@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 / starship.toml
Last active September 12, 2023 10:29
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 / .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 / .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 / Optimizations_Artix.md
Last active March 30, 2024 20:34
Set of optimizations, I use on my Artix Setup
@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