Skip to content

Instantly share code, notes, and snippets.

View aruss's full-sized avatar
😎

Ruslan Akiev aruss

😎
  • Germany
View GitHub Profile
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active April 15, 2024 02:19
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@Maarten88
Maarten88 / CookieConsentAttribute.cs
Last active March 27, 2023 21:33
ASP.NET ActionFilterAttribute to help implement european cookie-law
/*
* ASP.NET ActionFilterAttribute to help implement EU Cookie-law
* MIT Licence (c) Maarten Sikkema, Macaw Nederland BV
*/
using System;
using System.Web;
using System.Web.Mvc;
namespace Auction.Web.Utility
@ArnoldZokas
ArnoldZokas / InMemoryRazorEngine.cs
Created March 26, 2012 10:31
In-memory Razor engine with @model and @ViewBag support
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web.Razor;
using Microsoft.CSharp;
namespace SpecUtils