Skip to content

Instantly share code, notes, and snippets.

View vas6ili's full-sized avatar

Vasile Bujac vas6ili

View GitHub Profile
@gpsarkar
gpsarkar / export-pfx-without-password.txt
Created March 4, 2019 14:23
export pfx without password
openssl pkcs12 -in MyCertificate.pfx -clcerts -nokeys -out MyCertificate.crt
openssl pkcs12 -in MyCertificate.pfx -nocerts -out MyCertificate-encrypted.key
openssl rsa -in MyCertificate-encrypted.key -out MyCertificate_unenc.key
openssl pkcs12 -export -out MyCertificate_np.pfx -inkey MyCertificate_unenc.key -in MyCertificate.crt -passout pass:
@davidfowl
davidfowl / Example1.cs
Last active March 28, 2024 20:36
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)
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote