cd ~/Documents/auto-approve
python3 auto_approve.py --once --dry-run
nohup python3 auto_approve.py > ~/.auto-approve/run.log 2>&1 &
pkill -f auto_approve.py
| #!/usr/bin/env python3 | |
| # USAGE: | |
| # This script automates the process of merging a feature branch into a development branch | |
| # with rebasing. It checks out the feature branch, rebases it onto the development branch, | |
| # and then merges it into the development branch. It also validates that the branches exist | |
| # before performing any operations. The script can be run in dry-run mode to simulate the | |
| # operations without making any changes to the repository. | |
| # 1. Make the script executable: |
| # escape=` | |
| # https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile#escape-character | |
| # https://hub.docker.com/r/microsoft/dotnet-framework-sdk | |
| ARG FROM_IMAGE=mcr.microsoft.com/dotnet/framework/sdk:3.5-20241008-windowsservercore-ltsc2022 | |
| FROM ${FROM_IMAGE} | |
| SHELL ["cmd", "/S", "/C"] | |
| ADD https://aka.ms/vscollect.exe C:\collect.exe |
| // Compile: g++ generate-otp.cpp --std=c++17 -Wall -Wextra -o otp_generator | |
| // Run: ./otp_generator | |
| #ifndef ONE_TIME_PASSWORD_H | |
| #define ONE_TIME_PASSWORD_H | |
| #include <string> | |
| #include <vector> | |
| #include <ctime> |