Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
Working as .Net full stack developer

Jignesh Darji Jignesh-Darji

😃
Working as .Net full stack developer
View GitHub Profile
@Jignesh-Darji
Jignesh-Darji / index.html
Last active Nov 27, 2017
Model Popup Using Javascript
View index.html
<html>
<head>
<script src="sweetalert.min.js"></script>
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="sweetalert.css">
<script type="text/javascript">
$(document).ready(function () {
@Jignesh-Darji
Jignesh-Darji / ChangeIISSiteBinding.cs
Last active Mar 28, 2018 — forked from vnisor/gist:42ebcc196ab2d8675df46adfc191242c
How to change bindings on a site in IIS using C#
View ChangeIISSiteBinding.cs
void ChangeSiteBinding(string siteName, string newBindingValue, string protocol)
{
using (ServerManager manager = new ServerManager())
{
// Find the site by name from IIS
Microsoft.Web.Administration.Site site = manager.Sites.Where(q => q.Name == siteName).FirstOrDefault();
if (site == null)
{
throw new Exception("The specified site name does not exist in IIS!");
}
View How to Make Magic, Animated Tooltips With CSS.html
<html>
<head>
<style>
/* START TOOLTIP STYLES */
[tooltip] {
position: relative; /* opinion 1 */
}
/* Applies to all tooltips */
[tooltip]::before,
View how to display price label in Google Map.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>MarkerWithLabel Example</title>
<style type="text/css">
.labels {
margin-top:-3px;
padding: 5px;
position: absolute;
View Numeric Updown controller using html 5.html
<html>
<body>
<input type="number"/>
</body>
</html>
View QR Code Scanner Using HTML.html
<html>
<head>
<style>
body, input {font-size:14pt}
input, label {vertical-align:middle}
.qrcode-text {padding-right:1.7em; margin-right:0}
.qrcode-text-btn {display:inline-block; background:url('http://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2017/07/1499401426qr_icon.svg') 50% 50% no-repeat; height:1em; width:1.7em; margin-left:-1.7em; cursor:pointer}
.qrcode-text-btn > input[type=file] {position:absolute; overflow:hidden; width:1px; height:1px; opacity:0}
</style>
View Simple tooltips made of pure CSS.html
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/balloon-css/0.4.0/balloon.min.css">
</head>
<body>
<button data-balloon-length="xlarge" data-balloon="What about something really big? This may surpass your window dimensions. Imagine you're on that boring class with that boring teacher and you didn't slept so well last night. Suddenly you're sleeping in class. Can you believe it?! What about something really big? This may surpass your window dimensions. Imagine you're on that boring class with that boring teacher and you didn't slept so well last night. Suddenly you're sleeping in class. Can you believe it?!" data-balloon-pos="down">Xlarge tooltip</button>
</body>
</html>
View Overlay slide from top using css.html
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
width: 50%;
}
.image {
@Jignesh-Darji
Jignesh-Darji / How do I troubleshoot problems connecting to my EC2 Linux instance using SSH.txt
Created Jun 28, 2018
How do I troubleshoot problems connecting to my EC2 Linux instance using SSH
View How do I troubleshoot problems connecting to my EC2 Linux instance using SSH.txt
Issue
I have created and launched an EC2 Linux instance, but I can't connect to the instance using SSH or utilities that connect over SSH such as PuTTY. When I attempt to connect from the Linux command shell, the connection attempt hangs, and when I connect using the PuTTY client an error similar to the following is displayed in the PuTTY client user interface:
Network error: Connection timed out
Short Description
Both problems indicate that you are unable to access your EC2 instance from your current IP address using SSH.
Network connectivity to an EC2 instance is not enabled by default. You need to make some configuration changes in your VPC in the AWS management console.
@Jignesh-Darji
Jignesh-Darji / How to set permission of folder on amazon ec2 using putty.txt
Created Jun 28, 2018
How to set permission of folder on amazon ec2 using putty
View How to set permission of folder on amazon ec2 using putty.txt
//How to set permission of folder on amazon ec2 using putty
chmod 777 path/
chown -R ec2-user /var/www/html
chmod -R 755 /var/www/html