Skip to content

Instantly share code, notes, and snippets.

View NedkoHristov's full-sized avatar

Nedko Hristov NedkoHristov

View GitHub Profile
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: read-only
namespace: rw-namespace
rules:
- apiGroups:
- ""
resources:
apiVersion: v1
kind: Pod
metadata:
name: nginxpod2
namespace: default
spec:
containers:
- image: nginx:latest
name: nginxpod2
serviceAccountName: app1serviceaccount2
apiVersion: v1
kind: Namespace
metadata:
name: default
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: app1serviceaccount2
namespace: default
@NedkoHristov
NedkoHristov / git-update-all.md
Created April 7, 2020 10:07
Update all git repos in directory
nedko@nedko:~/repo$ find . -name .git -type d | xargs -n1 -P4 -I% git --git-dir=% --work-tree=%/.. pull

-P4 is for working at 4 consecutive repos if needed

Keybase proof

I hereby claim:

  • I am NedkoHristov on github.
  • I am nedko (https://keybase.io/nedko) on keybase.
  • I have a public key whose fingerprint is 1943 3F0E 2D2B 28E2 69D6 9F29 27B4 36AE 676E D267

To claim this, I am signing this object: