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 / 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
@imShakil
imShakil / OpensslError.md
Last active December 2, 2022 05:00
Shibboleth SP error: unable to load private key from [path]

I was trying to setup Shibboleth SP with our Gluu Server which is used the Shibboleth IDP. For no reason, I was stuck at this situation. After speending few hours I was able to detect the issue and solved the problem. This may help you too.

Error at shibd.log:

2022-06-10 01:25:08 ERROR XMLTooling.CredentialResolver.Chaining : caught exception processing embedded CredentialResolver element: Unable to load private key from file (/etc/certs/domain.key).
2022-06-10 01:25:08 INFO XMLTooling.CredentialResolver.Chaining : building CredentialResolver of type File
2022-06-10 01:25:08 INFO XMLTooling.SecurityHelper : loading private key from file (/etc/certs/domain.key)
@imShakil
imShakil / speedtest-cli.py
Created June 9, 2022 03:57
Test internet speed using python script
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2012 Matt Martz
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0