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 / ldap-to-pgsql.md
Last active October 10, 2024 10:38
[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
@imShakil
imShakil / oxtrust_en.properties
Created February 17, 2023 02:23
modified oxTrust[Gluu IDP] resource file
common.copyright=Powered by
common.allRightsReserved=Free and open source access management.
common.agreePolicy=By proceeding, you agree with the {0}
common.privacyPolicy=Privacy Policy
common.pleaseReadTheTos=Please read the
common.termsOfService=Terms of Service
common.gluuInc=Gluu, Inc
common.caution=Use subject to MIT LICENSE
home.welcome = Welcome to your Gluu Identity Configuration {0} !
@imShakil
imShakil / client.json
Last active November 13, 2022 04:35
test-client
{
"clientSecret": "1234",
"redirectUris": [
"https://modsso.gluu.info/callback"
],
"claimRedirectUris": [],
"responseTypes": ["code"],
"grantTypes": ["authorization_code"],
"applicationType": "web",
@imShakil
imShakil / vmware-vmmon-vmnet-fix.sh
Last active July 23, 2022 04:28
vmware vmmon and vmnet issue fix with this script.
#!/bin/sh
#Author: @vcont
#Source: gist#https://gist.github.com/vcont/1c76ff2954481e5c95cb361ea0c856a2
# 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