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.jsonc
Last active August 9, 2026 09:05
fastfetch config
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "auto",
"source": "$HOME/.config/fastfetch/cachy.png",
"width": 25,
"height": 10,
"padding": {
"top": 2,

Building LineageOS from Source

A Precise, Beginner-Friendly Reference for LineageOS 23.1 and LineageOS based ROMs

Target Device: OnePlus 7 · Codename: guacamoleb · SoC: Snapdragon 855 (SM8150)


Before You Begin

What You're Actually Doing

@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 March 21, 2026 15:55
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
Last active June 14, 2026 10:28
My Zsh (On my Void Setup - void musl x86_64)
[[ -z "$ZSH_VERSION" ]] && return
############################
# PATH & ENVIRONMENT
############################
# Path handling (zsh-native, no duplicates)
path=(
$HOME/.local/bin
$HOME/.cargo/bin
@themagicalmammal
themagicalmammal / .bashrc
Last active June 14, 2026 10:26
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_Void.md
Last active July 24, 2026 16:04
Set of optimizations, I use on my Void Setup

Void Linux — Complete System Optimization Guide

Warning: This guide contains system-level modifications. Some steps are irreversible or can render your system unbootable. Read every section fully before executing any command. Know what you are doing, or do not proceed.


Table of Contents

# Section