Skip to content

Instantly share code, notes, and snippets.

View dspasic's full-sized avatar
🧘
Success is achieved by learning from failures

Dejan Spasic dspasic

🧘
Success is achieved by learning from failures
View GitHub Profile
@dspasic
dspasic / f.py
Created October 25, 2021 14:55
Separate these numbers into 4 groups. The sum of every group must be equal.
n = [11, 14, 3, 17, 7, 1, 16, 16, 4, 18, 2, 13, 5, 4, 5, 12]
g = 4
a = {i:True for i in range(len(n))}
target_sum = sum(n)/g
def compute_pairs(n):
frame = 0
size = len(n)-int(len(n)/g)
p = {}
@dspasic
dspasic / error.log
Created February 28, 2022 08:46
minikube error
❗ Enabling 'ingress' returned an error: running callbacks: [sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1.22.3/kubectl apply -f /etc/kubernetes/addons/ingress-deploy.yaml: Process exited with status 1
stdout:
namespace/ingress-nginx unchanged
serviceaccount/ingress-nginx unchanged
serviceaccount/ingress-nginx-admission unchanged
role.rbac.authorization.k8s.io/ingress-nginx unchanged
role.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
clusterrole.rbac.authorization.k8s.io/ingress-nginx unchanged
clusterrole.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
rolebinding.rbac.authorization.k8s.io/ingress-nginx unchanged