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
#!/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: |
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
# 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 |
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
// 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> |