Skip to content

Instantly share code, notes, and snippets.

View pishangujeniya's full-sized avatar
🏠
Working from home

Pishang Ujeniya pishangujeniya

🏠
Working from home
View GitHub Profile
@pishangujeniya
pishangujeniya / keras_metrics.py
Last active February 3, 2020 09:33 — forked from dgrahn/keras_metrics.py
F1 Score Metrics removed from Keras in 2.0. Get True Positive, False Positive, True Negative, False Negative, Precision, Recall, Accuracy
"""Keras 1.0 metrics.
This file contains the precision, recall, and f1_score metrics which were
removed from Keras by commit: a56b1a55182acf061b1eb2e2c86b48193a0e88f7
"""
from keras import backend as K
def precision(y_true, y_pred):
"""Precision metric.
@pishangujeniya
pishangujeniya / lr_finder.py
Created March 1, 2019 08:18 — forked from jeremyjordan/lr_finder.py
Keras Callback for finding the optimal range of learning rates
import matplotlib.pyplot as plt
import keras.backend as K
from keras.callbacks import Callback
class LRFinder(Callback):
'''
A simple callback for finding the optimal learning rate range for your model + dataset.
@pishangujeniya
pishangujeniya / MySQL-8-Visual-Studio-2017-EntityFramework-Guide.md
Last active May 29, 2022 07:12
MySQL Server 8.0 with Visual Studio 2017 and EntityFramework Install Guide

Installing MySQL 8.0 Server with EntityFramework in Visual Studio 2017

  • Install MySQL Server 8.0
  • Install Complete MySQL Connector.Net x86 8.0.16
  • 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.
  • Run this command Install-Package EntityFramework -Version 6.4.0 in Visual Studio Nuget package manager console
  • Run this command Install-Package MySql.Data -Version 8.0.16 in Visual Studio Nuget package manager console
  • Run this command Install-Package MySql.Data.EntityFramework -Version 8.0.16 in Visual Studio Nuget package manager console
@pishangujeniya
pishangujeniya / README.md
Created April 21, 2019 09:27 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@pishangujeniya
pishangujeniya / Visual-Studio-Code-Extensions.md
Last active December 2, 2022 14:49
Visual Studio Code Recommended Extensions List, Top must to have extensions for Visual Studio Code

Visual Studio Code Must have Extensions

Hello World! Every programmer loves IDE and auto-complete inetllisense facilities in IDE's and editor tools. Since when Visual Studio Code came into market, it has attracted a lot of popularity among every age group of coders. 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 Code user must have.

Hit Star if you liked this.

Just search the title in extensions marketplace.

@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.

@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 / 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 / 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 / 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