| 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
| 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: |
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
| 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
| #!/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
| 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
| 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
| # %% | |
| # Import libraries | |
| import requests | |
| import html | |
| # %% | |
| # predefined variables like header and website vulnarable url parameter | |
| headers = { | |
| 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', | |
| 'Accept-Language': 'en-US,en;q=0.9', |
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 | |
| STATUS_FILE="$HOME/.screenstatus" | |
| # If file doesn't exist, create it with 0 | |
| if [ ! -f "$STATUS_FILE" ]; then | |
| echo 0 > "$STATUS_FILE" | |
| fi | |
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
| // Everything Above.................. | |
| #X11 connection rejected because of wrong authentication. FIX | |
| xauth extract - $DISPLAY > /tmp/xauth.$USER | |
| sudo -u $USER XAUTHORITY=/tmp/xauth.$USER DISPLAY=$DISPLAY bash | |
| #Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted | |
| sudo sysctl -w kernel.unprivileged_userns_clone=1 |