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

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 13, 2025 21:08
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 February 9, 2026 09:27
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
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_Void.md
Last active March 6, 2026 11:18
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
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active March 6, 2026 11:15
Set of optimizations, I use on my Artix Setup

Artix 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.

All examples are written for runit. Adapt service commands for OpenRC or s6 as needed.


Index