Skip to content

Instantly share code, notes, and snippets.

@allanalves23
allanalves23 / configured-user-limit-128.md
Created February 7, 2021 19:47
Fix: The configured user limit (128) on the number of inotify instances has been reached
sudo nano /etc/sysctl.conf

add those lines to bottom of file:

fs.inotify.max_user_watches = 1638400
fs.inotify.max_user_instances = 1638400
@SimonLuckenuik
SimonLuckenuik / HttpRequests.cs
Last active December 29, 2020 16:38
Concept example: Hosting an AspNetCore WebAPI inside an Azure Functions
using System.Configuration;
using System.IO;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
@thiloplanz
thiloplanz / Zero_knowledge_db.md
Last active June 13, 2025 03:05
Zero-knowledge databases

Zero knowledge databases

The idea

The idea is to provide a database as a service to end users in such a way that no one except the user herself can access the data, not even the hosting provider or the database administrator.

Advantages

  • A privacy- and/or security-conscious user will have more trust in such a setup.
  • The service provider cannot be coerced to release the data they were trusted with, and he cannot be held responsible for the content he is storing.
@davidfowl
davidfowl / dotnetlayout.md
Last active June 29, 2025 14:46
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@plentz
plentz / nginx.conf
Last active June 25, 2025 06:48
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@filipw
filipw / CompiledPropertyAccessor.cs
Last active March 4, 2024 04:17
removed unnecessary classes
using System;
using System.Linq.Expressions;
using System.Reflection;
using WebApi.Delta;
namespace Hst.Deals.API.Infrastructure
{
internal class CompiledPropertyAccessor<TEntityType> : PropertyAccessor<TEntityType> where TEntityType : class
{
private Action<TEntityType, object> _setter;