Skip to content

Instantly share code, notes, and snippets.

View noamtamim's full-sized avatar

Noam Tamim noamtamim

View GitHub Profile
@noamtamim
noamtamim / kube.sh
Created June 10, 2024 08:34
Kubernetes aliases
# Aliases taken from https://github.com/PaulRoze/mezeze/blob/main/mezeze.sh
# To avoid cluttering the global shell namespace, only load them when `kube` is entered in the terminal.
function kube() {
alias k="kubectl"
alias kx="/usr/local/bin/kubectx"
alias kn="/usr/local/bin/kubens"
alias ke="kubectl exec -it"
alias kl="kubectl logs"
alias kg="kubectl get"
@noamtamim
noamtamim / concise.mmd
Last active February 19, 2025 17:23
Concise
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@noamtamim
noamtamim / quadrangulars.mmd
Last active February 6, 2025 13:31
מרובעים
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@noamtamim
noamtamim / server.py
Created March 28, 2025 13:43
Smallest possible Python web server
# This server returns an empty JSON object, no matter what.
from wsgiref.simple_server import make_server
import threading
def start_server():
def app(environ, start_response):
start_response('200 OK', [('Content-Type', 'application/json')])
return [b'{}']