Skip to content

Instantly share code, notes, and snippets.

@Mohammad-Reihani
Mohammad-Reihani / starship.toml
Last active August 27, 2025 20:37
Starship configuration file | Reproduced Kali's default PS1 prompt
# ~/.config/starship.toml
add_newline = true
continuation_prompt = "[▸▹ ](dimmed white)"
format = """[┌──\\(](bold green)$username[㉿](bold green)$hostname[\\)-\\[](bold green)$time[\\]-\\[](bold green)$directory[\\]](bold green)\
(\n[│](green)( $python) |( $git_branch$git_commit$git_state))
[└](bold green)$cmd_duration[─](bold green)[\\$ ](bold blue)"""
right_format = '''$battery'''
@parsaM110
parsaM110 / README.md
Created April 23, 2025 14:03
Django-yasg
pip install drf-yasg

use it like this in views.py

from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema

@swagger_auto_schema(
    request_body=openapi.Schema(