Skip to content

Instantly share code, notes, and snippets.

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

Manoj Sunil Kulkarni manojkulkarni30

🏠
Working from home
View GitHub Profile
@manojkulkarni30
manojkulkarni30 / Powershell command to get the information about all the reference assemblies in a DLL
Last active January 11, 2017 16:16
Powershell command to get the information about all the reference assemblies in a DLL
Command
Get-ChildItem MyLibrary.dll | % { [Reflection.Assembly]::LoadFile($_.FullName).GetReferencedAssemblies() | % { $_.Name + ".dll" } }
@manojkulkarni30
manojkulkarni30 / Syncing a fork
Last active April 24, 2017 13:51
Syncing a fork
1. git remote -v (List all the remote repositories)
2. git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
3. git fetch upstream (Pull the change from upstream repository)
4. git checkout master (Checkout master branch on your local)
 
5. git merge upstream/master (Merge the change from upstream/master to local master branch)
@manojkulkarni30
manojkulkarni30 / Example1.cs
Created January 21, 2017 06:21 — forked from davidfowl/Example1.cs
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
@manojkulkarni30
manojkulkarni30 / Usefulwebsite.md
Last active August 16, 2017 06:57
Useful Websites

Useful Websites

@manojkulkarni30
manojkulkarni30 / Xamarin.Android.md
Last active April 9, 2017 05:01
Notes for Xamarin Android
  • List View Item Selected Highlight Color.
<item name="android:colorActivatedHighlight">@android:color/transparent</item>
@manojkulkarni30
manojkulkarni30 / RemoveServerResponseHeader.md
Last active June 14, 2017 06:03
Remove Server Response Header In Asp.net Mvc Application
  • Add the below rewrite rule in web.config file.
 <rewrite>
      <outboundRules rewriteBeforeCache="true">
        <rule name="Remove Server header">
          <match serverVariable="RESPONSE_Server" pattern=".+" />
          <action type="Rewrite" value="My Server" />
        </rule>
      </outboundRules>
 
@manojkulkarni30
manojkulkarni30 / UpdateIISExpressCertificate.ps1
Created June 17, 2017 06:50 — forked from camieleggermont/UpdateIISExpressCertificate.ps1
This powershell script generates a new certificate, removes the old certificate assignments from the IISExpress ssl ports and adds the newly generated one. The certificate is also copied over to the Trusted Root Certificate Authorities.
$cert = New-SelfSignedCertificate -DnsName "localhost", "localhost" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(5)
$thumb = $cert.GetCertHashString()
For ($i=44300; $i -le 44399; $i++) {
netsh http delete sslcert ipport=0.0.0.0:$i
}
For ($i=44300; $i -le 44399; $i++) {
netsh http add sslcert ipport=0.0.0.0:$i certhash=$thumb appid=`{214124cd-d05b-4309-9af9-9caa44b2b74a`}
}