Skip to content

Instantly share code, notes, and snippets.

View imShakil's full-sized avatar
🏠
Working from home

Mobarak Hosen Shakil imShakil

🏠
Working from home
View GitHub Profile
@imShakil
imShakil / content.md
Created January 4, 2026 09:41 — forked from heridev/content.md
Third party SAML Single Sign On (SSO) integration/implementation - Tech spec

Third party SAML Single Sign On (SSO) integration/implementation - Tech spec

  • Author: Heriberto Perez

Background

The implementation of SSO in order to connect with other services/providers/sites is a common requirement these days

For those cases when you have the need to integrate a third party service and embed some widgets in your site, and in order to make it in a secure way and based on dynamic data for the current authenticated, that is when the SSO integration comes handy for you.

Goals

This Tech spec will serve as a reference a SAML Single Sign On (SSO) integration.

@imShakil
imShakil / ec2-alb.yaml
Created September 22, 2025 13:14
high availability application AWS CF template
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Static Website High Availability with Autoscaling'
Parameters:
KeyName:
Type: AWS::EC2::KeyPair::KeyName
Description: The name of an existing EC2 KeyPair to enable SSH access to the instances
Resources:
VPC:
Type: AWS::EC2::VPC
@imShakil
imShakil / app.py
Last active September 22, 2025 10:36
display aws instance info
from flask import Flask
import socket
import requests
app = Flask(__name__)
IMDS_URL = "http://169.254.169.254/latest"
TOKEN_URL = f"{IMDS_URL}/api/token"
def get_metadata(path):
@imShakil
imShakil / ec2-sea.yaml
Created September 19, 2025 03:02
a cloudformation template to create vpc and ec2 instance
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Create a VPC with public subnet and launch an EC2 instance'
Parameters:
InstanceType:
Description: EC2 instance type
Type: String
Default: t2.micro
AllowedValues:
- t2.micro
@imShakil
imShakil / macos-devops-handy.md
Created April 16, 2025 07:36
Setup your MacBook as a DevOps Friendly Workstation

Update Mac to latest version

Update your Mac to latest version of macOS.

Install Mac Xcode Command Line Tools

xcode-select --install
@imShakil
imShakil / mysql_cheat_sheet.md
Created February 17, 2025 01:11 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@imShakil
imShakil / jans-saml-sso-with-sptest.md
Created January 23, 2025 08:37
jans saml SSO testing with SP

Testing Jans SAML SSO with sptest

Installing SAML IDP in Janssen Server

During installation the Janssen Server, make sure you have selected Jans KC to be installed.

Screenshot 2025-01-23 at 11 51 30

Or You can install Jans KC with the following command:

@imShakil
imShakil / migrate-gluu2flex.md
Last active February 10, 2025 02:09
Migration Gluu to Flex

Gluu to Flex Migration

1. Inside Gluu 4.x container:

1.1 Download Janssen archieve: wget https://github.com/JanssenProject/jans/archive/refs/heads/jans-linux-setup-gluu2flex-migration.zip

1.2 Extract archieve: unzip jans-linux-setup-gluu2flex-migration.zip

1.3 Execute script: python3 jans-jans-linux-setup-gluu2flex-migration/jans-linux-setup/tools/gluu2flex-migration/gluu2flex.py

@imShakil
imShakil / ldap-to-pgsql.md
Last active November 20, 2024 05:13
[WIP] ldap to pgsql migration in Gluu CE 4.5

Migration LDAP to PostgreSQL in Gluu Server (4.5) [WIP]

Before procceding, make sure that you have the backup. In case any failure, you can revert back and restart these steps. Let's start:

Setup PostgreSQL

Install postgresql server on your system (version should be at least 14.0) or any host that can be reachable from gluu host.

Let's install postgresql with the following command:

@imShakil
imShakil / gluu-cloud-native-with-microk8s.md
Created May 31, 2024 06:46
gluu-cloud-native-with-microk8s

Installation of Gluu Cloud Native in microk8s based kubernetes

  1. Make sure you have installed microk8s, and enable dns, hostpath-storage, helm3:
sudo microk8s.enable dns
sudo microk8s.enable hostpath-storage
sudo microk8s.enable helm3