This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
public class DelayStartAnnotation(IResource waitForResource) : IResourceAnnotation | |
{ | |
public IResource WaitForResource { get; } = waitForResource; | |
} |
This document now exists on the official ASP.NET core docs page.
function repo-sync { | |
# ###################################### | |
# link: https://jpapa.me/reposync | |
# | |
# What this does: | |
# [𝟙] Get the latest for your origin and upstream main branches' | |
# [𝟚] Make sure your main origin is in sync with your upstream and your local is pushed | |
# [𝟛] Checkout your branch and pull the latest' | |
# [𝟜] Merge main with your branch. This will sync your branch all changes in the upstream |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# This script to install Kubernetes will get executed after we have provisioned the box | |
$script = <<-SCRIPT | |
# Install kubernetes | |
apt-get update && apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list |
The only way I've succeeded so far is to employ SSH.
Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config
file in a .ssh
directory. The config
file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh
directory by default. You can navigate to it by running cd ~/.ssh
within your terminal, open the config
file with any editor, and it should look something like this:
Host * AddKeysToAgent yes
> UseKeyChain yes
You can now read this on my (pretty) website! Check it out here.
Every reason to get more HackerPoints™ is a good one, so today we're going to
write a neat command line app in .NET Core! The Common library has a really cool
package Microsoft.Extensions.CommandlineUtils
to help us parse command line
arguments and structure our app, but sadly it's undocumented.
No more! In this guide, we'll explore the package and write a really neat
// Interface segregation (Combined Mixin+Non-mixin) | |
// For no-mixins version see https://gist.github.com/benaadams/d35ff5c534a43fd6c89d | |
// For mixins/generic constraints version see https://gist.github.com/benaadams/77c6e7aa34aae92b876a | |
// Do something with sync Reading, Seeking, Disposable stream (Generic Constraints) | |
public static void DoSomething<T>(T stream) where T : IBlockingReader, ISeekable, ISizable, IDisposable | |
{ | |
stream.ReadByte(); | |
stream.SetLength(6); | |
stream.Position = 5; |
using System; | |
using System.Linq; | |
using Autofac; | |
using Autofac.Core; | |
namespace Autofac.Logging | |
{ | |
/// <summary> | |
/// Sets up automatic DI for service dependencies on <typeparamref name="TLogger"/>, | |
/// via an external factory that resolves based on the type of the resolver |