Skip to content

Instantly share code, notes, and snippets.

Radu M radu-matei

Block or report user

Report or block radu-matei

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
@radu-matei
radu-matei / Dockerfile
Created Aug 10, 2019
Dockerfile for kind
View Dockerfile
FROM docker:19.03-dind
RUN apk add --no-cache \
ca-certificates
ENV GOLANG_VERSION 1.11.12
RUN set -eux; \
apk add --no-cache --virtual .build-deps \
bash \
@radu-matei
radu-matei / Operation.cs
Created Feb 24, 2019
WIP CNAB Operation in .NET - currently removing, but may need later.
View Operation.cs
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
namespace Cnab.Runtime
{
public class Operation
{
[JsonProperty("installation_name")]
public string Installation { get; set; }
View Claim.cs
using System;
using Newtonsoft.Json;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using NUlid;
using Cnab.Bundle;
namespace Cnab.Runtime
{
public class Claim
View keybase.md

Keybase proof

I hereby claim:

  • I am radu-matei on github.
  • I am matei_radu (https://keybase.io/matei_radu) on keybase.
  • I have a public key ASC5EpeI47yN5OvnJWZN-QP7h3_kMahsL0pTAK65n9zTRAo

To claim this, I am signing this object:

@radu-matei
radu-matei / vsts_git.go
Created Jul 14, 2018
VSTS git events in Go
View vsts_git.go
// GitPushEvent models the data for a git.push event
type GitPushEvent struct {
Commits []struct {
CommitID string `json:"commitId"`
Author struct {
Name string `json:"name"`
Email string `json:"email"`
Date time.Time `json:"date"`
} `json:"author"`
View java-remote-debugging.md

run.sh

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -jar helloworld-jar-with-dependencies.jar

launch.json

View draft-ingress.yaml
{{- if .Values.ingress.enabled -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "fullname" . }}
annotations:
kubernetes.io/tls-acme: "true"
kubernetes.io/ingress.class: "nginx"
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
View gist:02c994d7c4d6b9774673152562b34944
kube-toolkit
-------------
Intro
-----
- toolkit for creating gRPC-based CLI and web tools for Kubernetes, and it should be used as a starting point in new awesome tools for Kubernetes
- CLI tooks: kubectl, helm draft
- web tools: Kubernetes UI Dashboard, Monocular
View kubelet
bash -c while true ; do /usr/bin/kubelet --docker-disable-shared-pid=false --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --authorization-mode=Webhook --client-ca-file=/etc/kubernetes/pki/ca.crt --cadvisor-port=0 --cgroup-driver=cgroupfs --fail-swap-on=false ; sleep 5; done &
{
while true ; do /usr/bin/kubelet --docker-disable-shared-pid=false --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --authorization-mode=Webhook --client-ca-file=/etc/kubernetes/pki/ca.crt --cadvisor-port=0 --cgroup-drive
View deployment.yaml
apiVersion: v1
kind: Pod
metadata:
name: mc1
spec:
volumes:
- name: html
emptyDir: {}
containers:
- name: 1st
You can’t perform that action at this time.