Skip to content

Instantly share code, notes, and snippets.

apiVersion: apps/v1
kind: Deployment
metadata:
name: rook-ceph-tools
namespace: kommander
labels:
app: rook-ceph-tools
spec:
replicas: 1
selector:
[url "git@github.com:"]
insteadOf = https://github.com/
[alias]
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 5 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}'
@takirala
takirala / ArePhasesReallyNeeded.md
Last active May 27, 2019 17:33
Phases in KUDO - brainstorming

What's possible in SDK ?

  • Each framework has multiple plans. Each plan has its own life-cycle (multiple plans can be active at the same time).
  • Each plan has n phases that can either be run in serial or parallel.
  • Each phase is an ordered list of n steps. These n steps can either be run in serial or parallel (supports -canary too).
  • Each step is a 2d array. Each element in this array is a list of tasks. Each element in the array (which can be a list of length > 0) is ALWAYS run in parallel. Elements themselves are run in parallel. The strategy defined at phase is used orchestrate across elements.
# `interleave`, `parallel-tasks` etc.. are all phases.
/*
write a program generating the first n Fibonacci numbers F(n), printing
"Buzz" when F(n) is divisible by 3.
"Fizz" when F(n) is divisible by 5.
"FizzBuzz" when F(n) is divisible by 15.
"BuzzFizz" when F(n) is prime.
the value F(n) otherwise.
*/
@takirala
takirala / gitflow-breakdown.md
Created October 13, 2016 14:20 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
git commit --allow-empty -m "Initial commit"
git checkout -b develop master

Connect to the remote repository

@takirala
takirala / hn_seach.js
Created September 9, 2016 21:45 — forked from kristopolous/hn_seach.js
hn job query search
function query() {
var
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments),
shown = 0, total = job_list.length;
// Traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.classList.contains(klass)) {