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 / 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
@imShakil
imShakil / vmware_vmmon_fix.sh
Created August 28, 2023 01:02 — forked from st3rven/vmware_vmmon_fix.sh
Fix for vmware vmmon and vmnet issues
#!/bin/sh
# Uncomment this is you want some more verbose output to see what is happening
#set -x
## Variables
# Change this directory name if you want to place these somewhere else
_projectdir=~/projects
_gitrepo=https://github.com/mkubecek/vmware-host-modules.git
if [ $(grep -q "workstation.product.version" /etc/vmware/config;echo $?) -eq 0 ];then
@imShakil
imShakil / ticky_check.py
Created August 26, 2023 10:47
Qwiklabs Assessment: Log Analysis Using Regular Expressions
#!/usr/bin/env python3
import re
import csv
import operator
errors = {}
stats = {}
@imShakil
imShakil / entertoken.xhtml
Created February 18, 2023 02:36
madhu script for email two factor auth
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
template="/WEB-INF/incl/layout/template.xhtml">
<f:metadata>
from org.gluu.oxauth.service import AuthenticationService
from org.gluu.oxauth.service import UserService
from org.gluu.oxauth.auth import Authenticator
from org.gluu.oxauth.security import Identity
from org.gluu.model.custom.script.type.auth import PersonAuthenticationType
from org.gluu.service.cdi.util import CdiUtil
from org.gluu.util import StringHelper
from org.gluu.oxauth.util import ServerUtil