mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-24 17:44:52 +00:00
some convenience bins
This commit is contained in:
parent
70c624c0f5
commit
53bfe1d301
4
bin/biggest
Executable file
4
bin/biggest
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/local/bin/nu
|
||||
|
||||
ls | sort-by size | reverse | keep 10
|
||||
|
7
bin/kube-dashboard
Executable file
7
bin/kube-dashboard
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
kubectl -n kube-system get secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}') -o json | jq -j --raw-output '.data.token' | base64 --decode | pbcopy
|
||||
|
||||
open http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#!/login
|
||||
|
||||
kubectl proxy
|
3
bin/newest
Executable file
3
bin/newest
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/local/bin/nu
|
||||
|
||||
ls | sort-by modified | reverse | keep 5
|
3
bin/oldest
Executable file
3
bin/oldest
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/local/bin/nu
|
||||
|
||||
ls | sort-by modified | keep 5
|
Loading…
Reference in New Issue
Block a user