| Branch Name | Example | Description |
|---|---|---|
main |
main |
The primary stable branch, always contains production-ready code. |
develop |
develop |
The main development branch where new features are integrated before release. |
feature/* |
feature/add-login |
Used for developing new features; created from develop and merged back when complete. |
release/* |
release/v1.0.0 |
Prepares a new production release; used for final testing and bug fixes before merging into main and develop. |
hotfix/* |
hotfix/fix-login-bug |
Used for critical bug fixes in production; branched from main, then merged back into main and develop. |
bugfix/* |
bugfix/fix-typo |
Fixes non-critical bugs in development; branched from develop and merged back. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import argparse | |
| import time | |
| parser = argparse.ArgumentParser(description="Combine code files into a markdown document.") | |
| parser.add_argument('--output', required=True, help='Output markdown file path') | |
| parser.add_argument('--folders', required=True, help='Comma-separated list of folders to scan') | |
| parser.add_argument('--extensions', required=True, help='Comma-separated list of file extensions to include') | |
| parser.add_argument('--verbose', action='store_true', help='Enable verbose logging') | |
| args = parser.parse_args() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker stop $(docker ps -q) && docker rm $(docker ps -aq) | |
| docker rmi -f $(docker images -q) | |
| docker volume rm $(docker volume ls -q) | |
| docker network rm $(docker network ls -q | grep -v "bridge\|host\|none") | |
| docker system prune -a --volumes -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| SUB_DISTRO=`lsb_release -i|cut -f 2` | |
| if test "$SUB_DISTRO" = "Debian"; then | |
| REL=`/usr/bin/lsb_release -c|cut -f 2` | |
| else | |
| REL=`/usr/bin/lsb_release -s -r` | |
| fi | |
| case "$1" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import subprocess | |
| # Ensure correct usage of the script | |
| if len(sys.argv) != 3 or sys.argv[2] not in ["--increase", "--decrease"]: | |
| print("Usage: xrandr-brightness.py <display> <--increase|--decrease>") | |
| sys.exit(1) | |
| display = sys.argv[1] # Get the display name from command-line arguments | |
| action = sys.argv[2] # Get the action (--increase or --decrease) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include .env | |
| export | |
| # Django development variables | |
| PYTHON = python3 | |
| MANAGE = $(PYTHON) ./manage.py | |
| PORT = 8081 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Workflow: | |
| 1. Connect to Websocket , Send Notification to all nearest Drivers. UserEnd | |
| 2. Driver Recived The Request and Accept or Decliened the Request. DriverEnd | |
| 3. If Anyother driver try to accept the ride after one driver accepted it , He should got a message You Are Late. DriverEnd | |
| 4. After Accept The Ride From Driver It should create a trip in database with the nessesary information. | |
| Customer Server Lisener -> /Driver/akfjsehfefh<auth-token> | |
| Driver Server Lisener -> /User/eysafhseuifgy<auth-token> | |
| Sender: |
Here’s a detailed table of enterprise-grade examples for Git commit messages tailored for large-scale solutions, considering high collaboration, scalability, and maintainability:
| Type | Description (When to Use) | Commit Message Example |
|---|---|---|
| feat | For introducing a new feature with clear business value. | feat: implement multi-tenant support for enterprise clients |
| fix | For resolving critical bugs or production issues. | fix: address race condition in payment processing workflow |
| docs | For |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # example: nmapw (nmap wrapper) , a wrapper that does wrap another bash file over actual program | |
| echo 'Nmap Starting......' | |
| nmap "$@" | |
| echo 'Bye! See You Next Time......' | |
| # wnmap localhost -p- => nmap localhost -p- | |
| # wnmap -A localhost -p 80,8001 => nmap -A localhost -p 80,8001 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Replace {user} with your linux username | |
| # e.g. @reboot /home/{user}/.start_vnc.sh -> @reboot /home/lenevo/.start_vnc.sh | |
| sudo apt install task-gnome-desktop #debian | |
| sudo apt install ubuntu-gnome-desktop #ubuntu | |
| sudo apt install kali-desktop-gnome #ubuntu | |
| #install gnome | |
| sudo apt install tigervnc-standalone-server tigervnc-common git dbus-x11 | |
| #install tigervnc |