A "simple" distributed app today.
- HTTP Rest API
- Task Workers (Queue consumers) and Crons (Periodic jobs)
- Web client
- Android / iOS client
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) |
Enable Stateful applications to access Dynamic Local PVs or Replicated PVs.
During a Hackathon I implemented a route-interception by HTTP Header value in Nginx-ingress for Kubernetes:
kind: ConfigMap
data:
http-snippet: |
map $http_x_feature_ucache $ucache_route_service {
default "$proxy_upstream_name";
'true' "default-cache-svc-3000";
// 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())); |
FROM python:3.7-slim | |
RUN pip install --no-cache-dir falcon | |
ENTRYPOINT ["python", "app.py"] | |
WORKDIR /app | |
COPY . . |
# ----------------------------------------------- | |
# ENSURE GIT REPOSITORIES | |
- name: Git | Ensure server repository | |
sudo_user: git | |
git: repo={{ upstream }} | |
dest={{ repo_dir }} | |
bare=yes | |
update=no | |
tags: git |
I hereby claim:
To claim this, I am signing this object:
Telegram is so much better than Slack, WhatsApp and HipChat combined.