Skip to content

Instantly share code, notes, and snippets.

RSS(wo,w1)=sigma i=1to N(yi-[w0+w1xi])square
@smothiki
smothiki / main.go
Last active June 1, 2020 19:26
libgit2 sample
package main
import (
"os"
"time"
"fmt"
git "github.com/libgit2/git2go"
)
func credentialsCallback(url string, username string, allowedTypes git.CredType) (git.ErrorCode, *git.Cred) {
https://github.com/adjust/gor/blob/7baf74380087246a9b38848e228817af3463140d/output_http.go#L31
@smothiki
smothiki / tiller-rbac.yml
Created October 25, 2019 00:40
tiller rbac.yml
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: tiller-clusterrolebinding
@smothiki
smothiki / kfctl_aws.yaml
Created October 22, 2019 21:29
kubeflow config
$ cat $CONFIG
apiVersion: kfdef.apps.kubeflow.org/v1alpha1
kind: KfDef
metadata:
name: kubeflow-aws
namespace: kubeflow
spec:
platform: aws
applications:
- kustomizeConfig:
@smothiki
smothiki / gist:4e9bbb2b7385eab1dab8db1ca777393c
Created September 23, 2019 23:00
install protoc in mac
brew install libtool
brew install autoconf && brew install automake
./autogen.sh && ./configure && make
make check
sudo make install
protoc --version
@smothiki
smothiki / 1_kubernetes_on_macOS.md
Created June 2, 2019 00:17 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

an be done, but not from a nice user interface.
I was playing around with the gparted Linux live partitioning distro. I had used this to re-arrange the partitions on my Linux VMWare image so it could be easily resized. This ISO is a hybrid and and doesn't mount from the finder. Here are some interesting commands. (All run from root)
hdiutil imageinfo gparted-live-0.25.0-3-i686.iso
Display all kinds of information about the image
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/dave/.ssh/identity
debug1: Offering public key: /Users/dave/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Trying private key: /Users/dave/.ssh/id_dsa
debug1: Next authentication method: password
dave@new-server.com's password: