Skip to content

Instantly share code, notes, and snippets.

View saradindusengupta's full-sized avatar
🏠
Working

Saradindu Sengupta saradindusengupta

🏠
Working
View GitHub Profile
@saradindusengupta
saradindusengupta / Create-SelfSignedCertificate.ps1
Created June 18, 2024 11:20
Create self-signed Key in Windows with Powershell
#Requires -RunAsAdministrator
<#
.SYNOPSIS
Creates a Self Signed Certificate for use in server to server authentication
.DESCRIPTION
.EXAMPLE
.\Create-SelfSignedCertificate.ps1 -CommonName "MyCert" -StartDate 2015-11-21 -EndDate 2017-11-21
This will create a new self signed certificate with the common name "CN=MyCert". During creation you will be asked to provide a password to protect the private key.
.EXAMPLE
.\Create-SelfSignedCertificate.ps1 -CommonName "MyCert" -StartDate 2015-11-21 -EndDate 2017-11-21 -Password (ConvertTo-SecureString -String "MyPassword" -AsPlainText -Force)
@saradindusengupta
saradindusengupta / technical_specification.md
Last active June 30, 2023 17:20
How to write a technical specification document

[Title] Write a Technical Specification Document

Reference

  1. https://stackoverflow.blog/2020/04/06/a-practical-guide-to-writing-technical-specs/
  2. https://www.industrialempathy.com/posts/design-docs-at-google/

A technical specification document outlines how you’re going to address a technical problem by designing and building a solution for it. It’s sometimes also referred to as a technical design document, a software design document, or an engineering design document. It’s often written by the engineer who will build the solution or be the point person during implementation, but for larger projects, it can be written by technical leads, project leads, or senior engineers. These documents show the engineer’s team and other stakeholders what the design, work involved, impact, and timeline of a feature, project, program, or service will be.

  • Author(s)
  • Team
@saradindusengupta
saradindusengupta / adr-X.md
Last active June 30, 2023 16:51
Architecture Decision Records

ADR-X: [Title] Architecture Decision Records are records of all the architecture decisions taken or discarded in a project.

[ Here X is the number starting from 1]

Context:

This section describes the forces at play including technological, political, social, bushiness. These forces probably are in tension with each other and should be called out such.

Decision:

Describe the response to these forces with active voice "We will".

Status:

Accepted values: PROPOSED, ACCEPTED, DEPRECATED, SUPERSEDED, REJECTED, AMENDED

Consequences:

Resulting context after applying the decision. All consequences, positive or negative.

@saradindusengupta
saradindusengupta / sample_systemd.md
Last active November 9, 2023 10:34
Sample systemd service file and how to setup systemd

Sample systemd service file and how to setup systemd

[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
PIDFile=/run/nginx.pid
ExecStart=/usr/sbin/nginx
@saradindusengupta
saradindusengupta / GPG_key_config.md
Last active October 18, 2022 12:51
Git Repository-wise configuration Guide for verified signed commit with GPG in GitHub

Git Repository-wise configuration Guide for verified signed commit with GPG in GitHub

1. Generate GPG keys

  1. Download and install the GPG command line tools for your operating system. We generally recommend installing the latest version for your operating system.
  2. Open Git Bash.
  3. Generate a GPG key pair. If you are not on version 2.1.17 or greater then
    1. gpg --default-new-key-algo rsa4096 --gen-key
  4. Enter your user ID information.
  5. Type a secure passphrase. This is a must.