Skip to content

Instantly share code, notes, and snippets.

View bgromov's full-sized avatar

Boris Gromov bgromov

View GitHub Profile
@eparis
eparis / kubectl.path
Created September 3, 2015 20:36
Patch to make bash completions work on Macs
diff --git a/contrib/completions/bash/kubectl b/contrib/completions/bash/kubectl
index c096937..8bc3410 100644
--- a/contrib/completions/bash/kubectl
+++ b/contrib/completions/bash/kubectl
@@ -1,5 +1,10 @@
#!/bin/bash
+__my_init_completion()
+{
+ COMPREPLY=()
@Zearin
Zearin / python_decorator_guide.md
Last active November 6, 2025 16:16
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].