Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafael Bodill rafi

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

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
data:
  http-snippet: |
    map $http_x_feature_ucache $ucache_route_service {
      default "$proxy_upstream_name";
      'true' "default-cache-svc-3000";
@rafi
rafi / k8s-101-handson.md
Created Aug 4, 2020
Workshop material for K8s 101 hands-on.
View k8s-101-handson.md

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
rafi / questions.md
Last active Apr 8, 2020
ראיון נגדי / Reverse Interview
View questions.md

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

המקור/Source: https://github.com/viraptor/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
rafi / README.md
Last active Mar 4, 2020
k3d-workshop
View README.md

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
rafi / index.js
Created Feb 23, 2020
Unwatch all repos of organization
View index.js
// Browse to https://github.com/watching 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 = orgRows.map(row => row.querySelector('button.select-menu-item[value="included"]'));
orgUnsubButtons.forEach(button => console.log(button.click()));
View keybase.md

Keybase proof

I hereby claim:

  • I am rafi on github.
  • I am justrafi (https://keybase.io/justrafi) on keybase.
  • I have a public key ASBtJHqjyerrL76jBIQ4LBx6fvpegzfKLvOj4AkCDBDkTQo

To claim this, I am signing this object:

@rafi
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", "app.py"]
WORKDIR /app
COPY . .