Skip to content

Instantly share code, notes, and snippets.


Rafael Bodill rafi

View GitHub Profile
rafi /
Created Sep 9, 2020
Overview of OpenEBS
rafi /
Created Aug 10, 2020
Kubernetes nginx-ingress routing by header value

During a Hackathon I implemented a route-interception by HTTP Header value in Nginx-ingress for Kubernetes:

Add Nginx-ingress annotation in global ConfigMap ('http' scope):

kind: ConfigMap
  http-snippet: |
    map $http_x_feature_ucache $ucache_route_service {
      default "$proxy_upstream_name";
      'true' "default-cache-svc-3000";
rafi /
Created Aug 4, 2020
Workshop material for K8s 101 hands-on.

Kubernetes 101: Hands-on

brew install kubernetes-cli minikube

minikube start # --memory=8192 --cpus=4
kubectl get -A deployment
kubectl get -A pod -w
rafi /
Last active Apr 8, 2020
ראיון נגדי / Reverse Interview

ראיון נגדי / Reverse Interview


עברית English (original)
?מהן המשימות שאעשה ביום רגיל What are the tasks I would do on a usual day?
?האם יש מטרות מסויימות עבורי Are there any specific goals for me?
?on-call - מה לוח-הזמנים והתכיפות של ה What's the on-call plan/schedule?
?הנוכחי בצוות junior vs. senior מה תמהיל What's the junior/senior balance of the team?
rafi /
Last active Mar 4, 2020

K3D Workshop

App Case-Study

A "simple" distributed app today.

  • HTTP Rest API
  • Task Workers (Queue consumers) and Crons (Periodic jobs)
  • Web client
  • Android / iOS client
rafi / index.js
Created Feb 23, 2020
Unwatch all repos of organization
View index.js
// Browse to and run in console:
(function() {
let qx = $x;
let unwatch = function(org) {
let nodes = document.querySelectorAll('.Box-row');
let rows = [ ...nodes ];
let orgRows = rows.filter(e => e.innerText.startsWith(` ${org}/`));
let orgUnsubButtons = => row.querySelector('[value="included"]'));
orgUnsubButtons.forEach(button => console.log(;

Keybase proof

I hereby claim:

  • I am rafi on github.
  • I am justrafi ( on keybase.
  • I have a public key ASBtJHqjyerrL76jBIQ4LBx6fvpegzfKLvOj4AkCDBDkTQo

To claim this, I am signing this object:

rafi / Dockerfile
Last active Jan 29, 2020
Python 3 Falcon API example
View Dockerfile
FROM python:3.7-slim
RUN pip install --no-cache-dir falcon
ENTRYPOINT ["python", ""]
COPY . .