Skip to content

Instantly share code, notes, and snippets.

View pishangujeniya's full-sized avatar
:octocat:
Remote committer

Pishang Ujeniya pishangujeniya

:octocat:
Remote committer
View GitHub Profile
@pishangujeniya
pishangujeniya / mail-exchange-2019.md
Last active June 18, 2024 13:34
Configuring and installing Mail Exchange 2019
@pishangujeniya
pishangujeniya / zeroone.ipynb
Created November 10, 2019 11:54
ZeroOne.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pishangujeniya
pishangujeniya / Get-Windows-Product-Key.vbs
Last active May 15, 2025 13:24
Get Windows installed product key from registry in plain readable format
Set WshShell = CreateObject("WScript.Shell")
readableKey = ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
MsgBox(readableKey)
Function ConvertToKey(Key)
insert = ""
AKey = ""
BKey = ""
CKey = ""
DKey = ""
@pishangujeniya
pishangujeniya / README.md
Last active May 1, 2025 12:12
Windows Logon History Checker

Windows Logon History Powershell script

  • Start > Windows Powershell Run as Administrator > cd to file directory
  • Set-ExecutionPolicy -ExecutionPolicy Unrestricted
  • Press A
  • ./windows-logon-history.ps1

Note

  • Currently code to check from Active Directory user domain login is commented.
@pishangujeniya
pishangujeniya / MainClass.cs
Last active February 1, 2021 07:52
Inline Interface Implementation as Java in C#
public class MainClass : IMyInterface {
public void paymentProceed () {
MyClass MyClass = new MyClass ();
// Java Inline Style
MyClass.someMethod ("INPUT TEXT", new MyClassImplementor (
(object resp) => {
@pishangujeniya
pishangujeniya / lets-encrypt-wildcard-certificate-in-iis.md
Last active December 6, 2022 13:21
Let's Encrypt WildCard Certificate Generation in IIS

Let's Encrypt Wild Card Certificate Generation in IIS

Linux CentOS 7

Commands to execute

  • cd /usr/local/bin
  • yum install letsencrypt OR wget https://dl.eff.org/certbot-auto OR sudo snap install --classic certbot
  • chmod 777 ./certbot-auto
  • cd certbot-auto
@pishangujeniya
pishangujeniya / MySQL8.0-Visual-Studio-2019-EntityFramework-Guide.md
Created May 26, 2019 06:18
Installing MySQL 8.0 Server with EntityFramework in Visual Studio 2019

Installing MySQL 8.0 Server with EntityFramework in Visual Studio 2019

  • Install MySQL Server 8.0.16
  • Install Complete MySQL Connector.Net x86 8.0.16
  • Install this custom repacked VSIX MySQL Visual Studio
  • If after installing MySQL Visual Studio Plugin it shows warning that failed to execute comamnd devenv /updateconfiguration, then manually execute that command in Developer Command Prompt for Visual Studio 20xx with run as administrator.
  • Run this command Install-Package EntityFramework in Visual Studio Nuget package manager console
  • Manage Nuget Packages > Search Mysql > install Mysql.Data v8.0.16
  • Manage Nuget Packages > Search Mysql > install Mysql.Data.Entity v6.10.8
  • Manage Nuget Packages > Search Mysql.Data.EntityFramework > install Mysql.Data.EntityFramework v8.0.16
@pishangujeniya
pishangujeniya / Remote-IIS-Management.md
Created May 23, 2019 13:35
How to connect and manage remote IIS Web Server from another machine without using RDP Remote Desktop Connection

Remotely connect to IIS Web Server.

Whenever you want to perform any tasks related to IIS on server you might be starting mstsc aka Remote Desktop Connection RDP for those tasks, but using the facility of remotely managing IIS from client IIS, no need of RDP now and then.

Follow the simple steps on IIS Server and client IIS machine.

Process on Server IIS

  • Run the following commands in powershell on the remote IIS Server
  • Install-WindowsFeature Web-Server
@pishangujeniya
pishangujeniya / MySQL5.7-EntityFramework-Guide.md
Created May 15, 2019 15:53
MySQL Server 5.7 with Visual Studio 2017 and EntityFramework Install Guide

Installing MySQL 5.7 Server with EntityFramework in Visual Studio 2017

  • Install MySQL Server 5.7.25

  • Install Complete MySQL Connector.Net 6.9.10

  • Install Complete MySQL Visual Studio Plugin 1.2.8

  • If after installing MySQL Visual Studio Plugin it shows warning that failed to execute comamnd devenv /updateconfiguration, then manually execute that command in Developer Command Prompt for Visual Studio 20xx with run as administrator.

  • Right Click References > Add > Click Assemblies or Extensions > Search MySQL > Tick all

  • Comment the following kind of similar code from Web.config

@pishangujeniya
pishangujeniya / Visual-Studio-Extensions.md
Last active May 15, 2022 07:13
Visual Studio must have extensions

Visual Studio Must have Extensions

Hello World! Every programmer loves IDE and auto-complete inetllisense facilities in IDE's and editor tools. But, any of the program doesn't suit to everyone's need, and thier comes the existence of extensions. Here I am listing out some of the very usefull extensions, that every Visual Studio user must have.

Hit Star if you liked this.

Just search the title in extensions marketplace.