mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Update everything, fix opencode/nvim stuff
This commit is contained in:
@@ -27,6 +27,12 @@
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
addresses = true;
|
||||
workstation = true;
|
||||
};
|
||||
};
|
||||
services.automatic-timezoned.enable = true;
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
app_exit = "<leader>q";
|
||||
input_submit = "ctrl+s";
|
||||
input_newline = "return";
|
||||
input_undo = "ctrl+y";
|
||||
input_redo = "ctrl+shift+y";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -112,6 +112,16 @@ _kgy() {
|
||||
}
|
||||
compdef _kgy kgy
|
||||
|
||||
kubectl-top-ephemeral() {
|
||||
(
|
||||
echo "Namespace Pod Ephemeral-used"
|
||||
for i in $(kubectl get node -o=jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}'); do
|
||||
kubectl get --raw "/api/v1/nodes/$i/proxy/stats/summary" | jq -r '.pods[]| [ .podRef.namespace, .podRef.name, ."ephemeral-storage".usedBytes ]|@tsv'
|
||||
done
|
||||
) | column -t | (read -r; printf "%s\n" "$REPLY"; sort -rn -k3) | head -21
|
||||
}
|
||||
|
||||
|
||||
alias copyfile="osc copy"
|
||||
copypath() {
|
||||
local file="${1:-.}"
|
||||
|
||||
Reference in New Issue
Block a user