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)]
| // Saturday-anchored week math. | |
| // Convention: weeks start on Saturday; week 1 of year Y contains Jan 1 of Y. | |
| // `moment` is provided globally by Templater/Obsidian. | |
| function week1Start(year) { | |
| const jan1 = moment([year, 0, 1]); | |
| return jan1.clone().subtract((jan1.day() + 1) % 7, 'days'); | |
| } | |
| function startOfWeek(date) { |
| .PHONY: warn | |
| .DEFAULT_GOAL := warn | |
| # This catches 'make <any-target>' | |
| .DEFAULT: | |
| @$(MAKE) warn | |
| # The logic (defined once, called once) | |
| warn: | |
| @echo "" |
| // ==UserScript== | |
| // @name Motamem Custom UI | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.5 | |
| // @description Add reading links + remove sidebar | |
| // @match https://motamem.org/* | |
| // @run-at document-end | |
| // @grant none | |
| // ==/UserScript== |
| """ | |
| ZIP Password Fragment Brute-Forcer | |
| ---------------------------------- | |
| Description: | |
| Recovers lost ZIP file passwords by testing all possible combinations | |
| of user-provided text fragments (e.g., known words, dates, symbols). | |
| Features: | |
| - Memory efficient: Generates combinations on-the-fly using itertools. | |
| - Scalable: Tests increasing lengths of combinations automatically. |
| // 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 |