Skip to content

Instantly share code, notes, and snippets.

View BornPsych's full-sized avatar
🔍
All I am good at is debugging...

Yogesh Shahi BornPsych

🔍
All I am good at is debugging...
View GitHub Profile

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@BornPsych
BornPsych / rust_error.rs
Created March 25, 2025 08:45
Rust Error file quick start
pub type Result<T> = core::result::Result<T, Error>;
#[derive(Debug)]
pub enum Error {}
// region: --- Error Boilerplate
impl core::fmt::Display for Error {
fn fmt(
&self,
fmt: &mut core::fmt::Formatter,
) -> core::result::Result<(), core::fmt::Error> {
@BornPsych
BornPsych / GitHub-Tips.md
Created February 19, 2025 11:30 — forked from stevecondylios/GitHub-Tips.md
Advanced GitHub Search Tricks & Tips
@BornPsych
BornPsych / Instruction.md
Created December 30, 2024 06:39 — forked from minhanhhere/Instruction.md
Customise Your Terminal Using Zsh & powerlevel10k

What we will setup

1. ZSH

ZSH, also called the Z shell, is an extended version of the Bourne Shell (sh), with plenty of new features, and support for plugins and themes.

2. oh-my-zsh

This is a framework for zsh

3. Powerlevel 10k

Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience.

@BornPsych
BornPsych / config
Last active July 8, 2025 09:33
Ghostty-config
# === Theme and Colors ===
theme = catppuccin-frappe
# === Mouse Behavior ===
mouse-hide-while-typing = true
mouse-scroll-multiplier = 2.0
# === Quick Terminal ===
keybind = global:alt+space=toggle_quick_terminal
# quick-terminal-screen = "mouse"
@BornPsych
BornPsych / Ghostty-config-example
Created December 30, 2024 03:37 — forked from Mario-SO/config
Ghostty config example
# === Font Configuration ===
font-family = "" # String: Font name or empty to reset
font-family-bold = "" # String: Bold font variant
font-family-italic = "" # String: Italic font variant
font-family-bold-italic = "" # String: Bold-italic font variant
font-style = "" # String: Named font style or "false" to disable
font-style-bold = "" # String: Named bold font style
font-style-italic = "" # String: Named italic font style
font-style-bold-italic = "" # String: Named bold-italic font style
font-synthetic-style = "" # Values: "true", "false", "no-bold", "no-italic", "no-bold-italic"
@BornPsych
BornPsych / Next.js-Cmopilation.md
Last active May 26, 2024 20:26
Next.js Compilation process explained

Certainly! Here is a breakdown of the various steps involved in the compilation process of a Next.js 14 application, along with the libraries responsible for each step:

1. File Watching

  • Initial Setup: Done by Next.js.
  • Hot Module Replacement (HMR): Handled by Webpack.

2. Transpiling

  • SWC: Transpiles modern JavaScript and JSX code into backward-compatible JavaScript, replacing Babel as the default transpiler in Next.js 12 and later. It also handles TypeScript transpilation.

3. Module Resolution

@BornPsych
BornPsych / config.md
Last active May 27, 2025 14:30
Next.js project starter config

Configuring Next.Js Project

In this article, we will create a Next.js application with ESLint, Prettier, Husky, Lint-Staged and Bundle-Analyser.

Create a Next.js App

Let's create a new Next.js project by running the following command, We use pnpm as a package manager,

pnpm create next-app