Skip to content

Instantly share code, notes, and snippets.

@chenrina168
chenrina168 / Enable-Transformations.md
Created July 6, 2020 08:34 — forked from EdCharbeneau/Enable-Transformations.md
How to enable transformations on build with Visual Studio

#Transform web.config on build

  1. Unload the project
  2. Edit .csproj
  3. Append figure 1 to the end of the file just before </Project>; v12.0 my change depending on your version of Visual Studio
  4. Save .csproj and reload
  5. Open configuration manager
  6. Add a new Configuration Name: Base. Copy settings from: Release
  7. Copy the contents of your web.config
  8. Right click Web.Config > Add Config Transformation
@chenrina168
chenrina168 / Readme.md
Created July 14, 2020 03:44 — forked from gabrielemariotti/Readme.md
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example:

@chenrina168
chenrina168 / Directory.java
Created July 30, 2020 01:44 — forked from kasunn25/Directory.java
Complete solution to implement a Recyclerview with sticky group headers. The ItemDecorations class is already given in this question https://stackoverflow.com/questions/32949971/how-can-i-make-sticky-headers-in-recyclerview-without-external-lib
public class Directory {
String name;
String branch;
boolean isHeader;
public String getName() {
return name;
}
public void setName(String name) {
@chenrina168
chenrina168 / dockerfile
Created June 23, 2021 03:47 — forked from AntonMiles/dockerfile
Creating A .NET Windows Docker Container With Internal IIS SSL (From PFX File) and HTTPS Support
# The following won't work as-is, I use '<>' to denote variables you need to replace, including a name so you can keep them straight!
# A list of all of them, for searching follows.
# app_directory
# app_name
# ssl_password
# ssl_name
#base machine is meant to contain IIS as well as asp/.net requirements
FROM microsoft/aspnet
#Expose port 443 to allow incoming traffic over the default HTTPS port
@chenrina168
chenrina168 / openssl_extract_cert_and_key_from_pfx.md
Created December 8, 2021 10:18 — forked from josefglatz/openssl_extract_cert_and_key_from_pfx.md
Cheatsheet: How to extract certificate and private key from a PFX file

How to extract certificate and private key from a PFX file

Given PFX file

stern-domain-at.pfx (optionally secured with passphrase)

Openssl needs to be installed

Commands