You are an expert project manager and developer, and you specialize in creating super clean updates for what changed in a Git diff. Follow the conventional commits format:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
| // Simplified Gregorian to Shamsi date converter | |
| function toJalaali(gy, gm, gd) { | |
| var g_days_in_month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; | |
| var j_days_in_month = [31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29]; | |
| gy = parseInt(gy) - 1600; | |
| gm = parseInt(gm) - 1; | |
| gd = parseInt(gd) - 1; | |
| var g_day_no = 365 * gy + parseInt((gy + 3) / 4) - parseInt((gy + 99) / 100) + parseInt((gy + 399) / 400); |
| # Add this function to your shell profile (e.g., ~/.zshrc or ~/.bashrc) | |
| fix_app() { | |
| if [ -z "$1" ]; then | |
| echo "Usage: fix_app <FullPathToApp>" | |
| return 1 | |
| fi | |
| APP_PATH="$1" |
| همگام | |
| قال | |
| نيز | |
| بنابراين | |
| مون | |
| بران | |
| چندین | |
| سعی | |
| خوبي | |
| ث |
| #!/bin/bash | |
| set -euo pipefail | |
| # Directory containing Docker Compose file | |
| DOCKER_DIR="/home/azureuser/services/mongodb" | |
| # Backup storage directory | |
| BACKUP_DIR="/home/azureuser/services/mongodb/backup" |
| # Answer taken from https://gist.github.com/jvelezmagic/f3653cc2ddab1c91e86751c8b423a1b6 | |
| from fastapi import FastAPI | |
| from fastapi.responses import StreamingResponse | |
| from langchain.chat_models import ChatOpenAI | |
| from langchain.prompts import PromptTemplate | |
| from pydantic import BaseModel | |
| from typing import AsyncGenerator |
| #!/bin/bash | |
| # Get and validate username | |
| get_name() { | |
| read -p "Enter your name: " name | |
| echo "Username: $name" | |
| if [ -z "$name" ]; then | |
| echo "Name is empty!" | |
| exit 1 |
| direction | date | week | month | quarter | year |
|---|---|---|---|---|---|
rtl |
<% tp.date.now("YYYY-MM-DD", 0, tp.file.title, "YYYY-MM-DD") %> |
<% tp.date.now("YYYY-[W]ww", 0, tp.file.title, "YYYY-MM-DD") %> |
<% tp.date.now("YYYY-MM", 0, tp.file.title, "YYYY-MM-DD") %> |
<% tp.date.now("YYYY-[Q]Q", 0, tp.file.title, "YYYY-MM-DD") %> |
<% tp.date.now("YYYY", 0, tp.file.title, "YYYY-MM-DD") %> |
[[ obsidian-notes/Journaling/WeeklyNotes/<% tp.date.now("YYYY-[W]ww", 0, tp.file.title, "YYYY-MM-DD") %> | برنامه این هفته ]] - [[ obsidian-notes/Journaling/MonthlyNotes/<% tp.date.now("YYYY-MM", 0, tp.file.title, "YYYY-MM-DD") %> | برنامه این ماه ]] - [[ obsidian-notes/Journaling/QuarterlyNotes/<% tp.date.now("YYYY-[Q]Q", 0, tp.file.title, "YYYY-MM-DD") %> | برنامه این فصل ]] - [[ obsidian-notes/Journaling/YearlyNotes/<% tp.date.now("YYYY", 0, tp.file.title, "YYYY-MM-DD") %> | برنامه امسال ]]
| git config core.autocrlf true | |
| git config core.filemode false |
| .ONESHELL: | |
| SHELL = /bin/bash | |
| CONDA_ACTIVATE = source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate | |
| .PHONY: help | |
| help: update | |
| @egrep -h '\s##\s' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m %-30s\033[0m %s\n", $$1, $$2}' | |
| update: ## pull git updates |