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 / serial-key.md
Last active June 19, 2023 00:26
vmware workstation pro 16 license key
@imShakil
imShakil / gpg-key-commit-signature-verification.md
Created July 18, 2021 07:35
How to create gpg key to commit signature verification

To install gnupg

sudo apt-get install gnupg

To Generate gpg key with details

gpg --full-generate-key
@imShakil
imShakil / connect-vm-ldap-server-in-apache-directory-studio.md
Last active July 27, 2021 22:07
Creating tunnel to connect internal (VM) LDAP server in Apache Directory Studio of the local host computer

This doc will help to connect your internal(VM) LDAP server to any LDAP browser (jx explorer, Apache Directory). Basically, I have installed an application with LDAP server in my Virtual Machine (vmware). After then, I was trying to connect that internal ldap server to Apache Directory in my Host Computer. Thoug I could access application server through my browser, but could not able to make connection of the ldap server into the Apache Directory. Later I found this solution that is the port of that ldap server was not able to communicate with my host computer even after adding that port into the firewall. Actually we have to create a tunnel of the ssh server to connect that port.

LDAP server info

bind dn: cn=admin/directory manager server address: localhost/ip:port server password: password

@imShakil
imShakil / progress-bar.py
Last active August 27, 2021 11:30
Python Progress-bar while downloading files using linux terminal
#!/usr/bin/python3
import os
import sys
import time
import urllib.request
def show_progress(block_number, block_size, total_size):
global start_time
@imShakil
imShakil / mouse-auto-movement.py
Created September 8, 2021 22:23
A python program based on tkinter module to manipulate mouse auto movement.
#!/usr/bin/python3
import time
import random
import pyautogui as pyg
from tkinter import *
from tkinter import ttk
app = Tk()
app.geometry("750x300")
@imShakil
imShakil / apqachedirectorystudio.md
Created April 12, 2022 04:55
Install Apache Directory Studio in Linux

Creating Desktop Shortcut

Let's create a desktop shortcut for Apache Directory Studio.

Open a terminal as a root user and move into below directory:

cd /usr/local/share/applications

Creating a name.desktop file:

vi apache-directory-studio.desktop
@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
@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 / 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 / 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",