Skip to content

Instantly share code, notes, and snippets.

🕵

aevitas

🕵
Block or report user

Report or block aevitas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FileRepository.cs
// This implementation is of rather poor quality - you should only use this class for debugging and testing purposes, and never for actual production code.
public class FileRepository<T> : IRepository<T>, IDisposable, IAsyncDisposable where T : class
{
private readonly ConcurrentQueue<T> _writeQueue = new ConcurrentQueue<T>();
private readonly ReaderWriterLockSlim _lock = new ReaderWriterLockSlim();
private readonly FileInfo _file;
private readonly CancellationTokenSource _cts = new CancellationTokenSource();
private readonly Task _writeTask;
public FileRepository(IOptions<FileRepositoryOptions> options)
View static-server.go
package main
import (
"fmt"
"log"
"net/http"
)
var (
endPoint = "0.0.0.0:5080"
View output.txt
NAME: my-wordpress
LAST DEPLOYED: Mon Mar 25 11:36:28 2019
NAMESPACE: default
STATUS: DEPLOYED
RESOURCES:
==> v1/ConfigMap
NAME DATA AGE
my-wordpress-mariadb 1 0s
my-wordpress-mariadb-tests 1 0s
View Chart.yaml
apiVersion: v1
name: wordpress
version: 5.7.0
appVersion: 5.1.1
description: Web publishing platform for building blogs and websites.
icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png
keywords:
- wordpress
- cms
- blog
View structure.txt
wordpress/
Chart.yaml # A YAML file containing information about the chart
LICENSE # OPTIONAL: A plain text file containing the license for the chart
README.md # OPTIONAL: A human-readable README file
requirements.yaml # OPTIONAL: A YAML file listing dependencies for the chart
values.yaml # The default configuration values for this chart
charts/ # A directory containing any charts upon which this chart depends.
templates/ # A directory of templates that, when combined with values,
# will generate valid Kubernetes manifest files.
templates/NOTES.txt # OPTIONAL: A plain text file containing short usage notes
View tiller-sa.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
View webhookrelay-app-do.yaml
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: wd
namespace: default
labels:
name: "wd"
keel.sh/policy: major
keel.sh/trigger: poll
View deployment-rbac-do.yaml
---
# Source: keel/templates/00-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: "keel"
---
# Source: keel/templates/service-account.yaml
View migrations.cs
public partial class CreateIdentitySchema : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AspNetRoles",
columns: table => new
{
Id = table.Column<string>(nullable: false),
View keel-deploy.yaml
---
# Source: keel/templates/00-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: "keel"
---
# Source: keel/templates/service-account.yaml
You can’t perform that action at this time.