Skip to content

Instantly share code, notes, and snippets.

View radu-matei's full-sized avatar

Radu Matei radu-matei

View GitHub Profile

Cross compiling Rust to aarch64

Adding the Rust target and GCC toolchains:

$ sudo apt-get update
$ sudo apt-get install gcc-aarch64-linux-gnu --fix-missing
$ rustup target add aarch64-unknown-linux-gnu
declare namespace WebAssembly {
interface CompileError {
}
var CompileError: {
prototype: CompileError;
new(): CompileError;
};
interface Global {
@radu-matei
radu-matei / Dockerfile
Created August 10, 2019 11:30
Dockerfile for kind
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 February 24, 2019 01:15
WIP CNAB Operation in .NET - currently removing, but may need later.
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
namespace Cnab.Runtime
{
public class Operation
{
[JsonProperty("installation_name")]
public string Installation { get; set; }
using System;
using Newtonsoft.Json;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using NUlid;
using Cnab.Bundle;
namespace Cnab.Runtime
{
public class Claim

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 July 14, 2018 23:53
VSTS git events in 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"`

run.sh

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

launch.json

{{- 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 "+" "_" }}"
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