Skip to content

Instantly share code, notes, and snippets.

View jengo's full-sized avatar

Jolene Engo jengo

  • San Francisco, CA
View GitHub Profile
@sudhanshu-15
sudhanshu-15 / Jenkinsfile
Created November 14, 2018 15:59
Jenkins file for Flutter tests
pipeline {
agent any
stages {
stage ('Checkout') {
steps {
checkout scm
}
}
stage ('Download lcov converter') {
steps {
@squidpickles
squidpickles / README.md
Last active June 14, 2024 13:38
Multi-platform (amd64 and arm) Kubernetes cluster

Multiplatform (amd64 and arm) Kubernetes cluster setup

The official guide for setting up Kubernetes using kubeadm works well for clusters of one architecture. But, the main problem that crops up is the kube-proxy image defaults to the architecture of the master node (where kubeadm was run in the first place).

This causes issues when arm nodes join the cluster, as they will try to execute the amd64 version of kube-proxy, and will fail.

It turns out that the pod running kube-proxy is configured using a DaemonSet. With a small edit to the configuration, it's possible to create multiple DaemonSets—one for each architecture.

Steps

Follow the instructions at https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ for setting up the master node. I've been using Weave Net as the network plugin; it see

@AntonPuko
AntonPuko / mobx-react-navigation integration.js
Last active August 30, 2018 03:59
integrating react-navigation with mobx
import type { NavigationAction, NavigationParams } from 'react-navigation';
import * as React from 'react';
import { BackHandler } from 'react-native';
import { NavigationActions, StackNavigator, addNavigationHelpers } from 'react-navigation';
import { action, observable } from 'mobx';
import { observer } from 'mobx-react';
const RootNavigator = StackNavigator(
{
@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active July 3, 2024 03:59
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@ahmetb
ahmetb / gcrgc.sh
Last active May 10, 2024 15:17
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@mgoodness
mgoodness / helm-rbac.md
Last active October 30, 2021 17:04
Helm RBAC setup for K8s v1.6+ (tested on minikube)
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
@hanikesn
hanikesn / dashboard.yaml
Last active April 6, 2020 22:35
OpenID Connect Kubernetes Dashboard
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kubernetes-dashboard
namespace: kube-system
labels:
k8s-app: kubernetes-dashboard
kubernetes.io/cluster-service: "true"
spec:
replicas: 1
@cherti
cherti / alert.sh
Created December 9, 2016 13:47
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",
@megahertz
megahertz / MobxRnnProvider.js
Last active January 11, 2020 09:56
This is a provider which allows to use mobx-react Provider with wix/react-native-navigation.
import { Provider } from 'mobx-react/native';
const SPECIAL_REACT_KEYS = { children: true, key: true, ref: true };
export default class MobxRnnProvider extends Provider {
props: {
store: Object
};
context: {
@jengo
jengo / gist:3193f65e1c92ed1eeb401fc69e426cc3
Last active February 26, 2018 05:43
blender output to video using ffmpeg and docker
If you have docker installed, this is a simple command to load ffmpeg, link current directory and create a video from the output of blender.
docker run -it --rm -v "`pwd`":/tmp/workdir jrottenberg/ffmpeg -r 24 -f image2 -pattern_type glob -i '*.png' -i %04d.png -s hd1080 -vcodec libx264 -pix_fmt yuv420p -y output.mp4