Git - Move Branch

Move to “master” Open the terminal (press Ctrl+`) and run: git checkout master If master isn’t checked out locally yet, do: git fetch origin git checkout master If “master” was not updated in the local branch If the branch switched successfully to master, but the files in your working directory didn’t update as expected, it could be one of these cases: Confirm You’re on the Correct Branch Run this to verify: git branch You should see something like this. The asterisk * indicates your current branch. ...

May 20, 2025

Git - Useful Commands

1. Check the connection git remote -v See also: Git - Useful Commands Git - Move Branch Git - Ignore Settings

May 20, 2025

Azure DevOps - Complete (Merge)

Use Azure DevOps Web UI Scenario: This guide shows how to merge a pull request from the release/v1.0-america branch into the main branch using Azure DevOps or any Git repository. Final Step (Complete the Pull Request): Once it’s approved, click the “Complete” button to merge it into master. You’ll get options like: Squash or merge (depending on settings) Delete source branch after merging (optional) Click “Complete merge” when ready ...

May 20, 2025

Azure DevOps - Approve

Use Azure DevOps Web UI Scenario: This guide demonstrates how to approve a pull request from the release/v1.0-america branch into the master branch in Azure DevOps or any Git repository. Steps (Approve the Pull Request): Go to Azure DevOps in your browser Navigate to Repos > Pull Requests Find the Pull request (from release/v1.0-america to master) Click on the PR to open it. On the right-hand side, you’ll see the “Reviewers” section ...

May 20, 2025

Azure DevOps - Pull Request

Use Azure DevOps Web UI Scenario: This guide shows how to push changes from the release/v1.0-america branch to the master branch in Azure DevOps (or any Git repository). Steps: Go to your Azure DevOps project in the browser. Navigate to Repos > Branches. Find your branch release/v1.0-america Click on the "…" (More options) next to it and select “New pull request” Set: Source: release/v1.0-america Target: master Add a title, description (optional but helpful), and click “Create” ...

May 20, 2025

Memory Dump Anaylsis - WinDbg

WinDbg is the primary tool from Microsoft to analyze memory dump files. This is the Step-by-Step guide to Analyze Memory Dump with WinDbg. 1. Install WinDbg Preview Open Microsoft Store and search for WinDbg Preview. Or download it from WinDbg Preview 2. Open Your Dump File Launch WinDbg Preview. Click File > Open dump file. Select your .dmp file (e.g., C:\Windows\MEMORY.DMP, C:\Windows\Minidump). 3. Use Basic Commands After opening the file, type the following in the command window: !analyze -v ...

May 19, 2025

NGINX Load Balancer - Secure gRPC

This guide extends our previous blog post on NGINX Load Balancer for WCF & gRPC by adding SSL connections to the gRPC protocol. The steps are similar—just update the config file bpserver-loadbalancer.conf Configuration File Location: /etc/nginx/conf.d/bpserver-loadbalancer.conf # NGINX Load Balancer Configuration for Blue Prism Enterprise # Defining two upstream blocks for different ports upstream bpserver_backend_8199 { ip_hash; server d11-app-bpe02.gcs.cloud:8199 max_fails=3 fail_timeout=30s; server d11-app-bpe03.gcs.cloud:8199 max_fails=3 fail_timeout=30s; server d11-app-bpe04.gcs.cloud:8199 max_fails=3 fail_timeout=30s; } upstream bpserver_backend_10000 { ip_hash; server d11-app-bpe02.gcs.cloud:10000 max_fails=3 fail_timeout=30s; server d11-app-bpe03.gcs.cloud:10000 max_fails=3 fail_timeout=30s; server d11-app-bpe04.gcs.cloud:10000 max_fails=3 fail_timeout=30s; } server { listen 8199 ssl; server_name d11-lnx-alb01.gcs.cloud; ssl_certificate /etc/nginx/ssl/server_001.crt; ssl_certificate_key /etc/nginx/ssl/server.key; ssl_client_certificate /etc/nginx/ssl/ca-bundle.crt; ssl_verify_client off; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass https://bpserver_backend_8199; proxy_ssl_verify off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_connect_timeout 300s; proxy_read_timeout 300s; proxy_send_timeout 300s; proxy_pass_request_headers on; proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; } } server { listen 10000 ssl; # Add ssl here http2 on; server_name d11-lnx-alb01.gcs.cloud; # Add SSL certificate configuration ssl_certificate /etc/nginx/ssl/server_001.crt; ssl_certificate_key /etc/nginx/ssl/server.key; ssl_client_certificate /etc/nginx/ssl/ca-bundle.crt; ssl_verify_client off; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { grpc_pass grpcs://bpserver_backend_10000; # Change to grpcs:// for SSL # gRPC specific settings grpc_read_timeout 300s; grpc_send_timeout 300s; # Headers for gRPC grpc_set_header Host $host; grpc_set_header X-Real-IP $remote_addr; grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } See also: NGINX Load Balancer for WCF & gRPC ...

April 24, 2025

OpenSSL - Verify Certificate

Verify the certificate openssl x509 -in server/certs/client.crt -text -noout openssl x509 -in server/certs/server.crt -text -noout Verify the certificate chain # First, concatenate the CA certificates (leaf to root) cat mid-ca.crt ca.cert > ca-bundle.crt # Then verify using the chain file openssl verify -CAfile ca-bundle.crt server/certs/client.crt openssl verify -CAfile ca-bundle.crt server/certs/server.crt See also: OpenSSL - Initial Setup OpenSSL (1) - Root CA OpenSSL (2) - Intermediate CA OpenSSL (3) - Server Certificate ...

April 24, 2025

OpenSSL - Revoke Certificate

Revoke a certificate openssl ca -config mid-ca/mid-ca.crt -revoke server/certs/server.crt cat mid-ca/index See also: OpenSSL - Initial Setup OpenSSL (1) - Root CA OpenSSL (2) - Intermediate CA OpenSSL (3) - Server Certificate OpenSSL (4) - Client Certificate OpenSSL - Verify Certificate OpenSSL - Revoke Certificate

April 24, 2025

OpenSSL (4) - Client Certificate

Create a Client Certificate 1. Generate a client key file openssl genrsa -out server/private/client.key 2048 2. Generate a client Certificate Signing Request (CSR) openssl req -config mid-ca/mid-ca.conf -key server/private/client.key -new -sha256 -out server/csr/client.csr e.g., CN=GCS-Client-Certificate-v0x 3. Sign the client CSR using the client_cert extension openssl ca -config mid-ca/mid-ca.conf -extensions client_cert -days 3650 -notext -in server/csr/client.csr -out server/client-certs/client.crt 4. Generate client PFX (if needed) openssl pkcs12 -inkey server/private/client.key -in server/client-certs/client.crt -export -out server/client-certs/client.pfx -passout pass: See also: Download from CloudShell ...

April 24, 2025