- jvm dashboard: https://grafana.com/grafana/dashboards/14359-jvm-metrics/
- jvm dashboard: https://grafana.com/grafana/dashboards/12932-jvm-statistics/ (for new grafana)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PROMPT='%(?.%F{green}√.%F{red}?%?)%f %B%F{240}%1~%f%b %# ' | |
export GOBIN=/usr/local/go/bin | |
export PATH=$PATH:$GOBIN | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
autoload -Uz compinit && compinit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 修复命令: | |
gsettings set org.freedesktop.ibus.panel.emoji hotkey $'[\'<Control><Super><Shift>e\']' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global log.date format:'%Y-%m-%d %H:%M:%S' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Workaround for https://github.com/kubernetes-sigs/kind/issues/2045 | |
all_nodes=$(kind get nodes --name "${CLUSTER_NAME}" | tr "\n" " ") | |
declare -A nodes_table | |
ip_template="{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}" | |
echo "Saving original IPs from nodes" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set noerrorbells | |
set t_vb= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create and join the docker group. | |
$ sudo addgroup --system docker | |
$ sudo adduser $USER docker | |
$ newgrp docker | |
You will also need to disable and re-enable the docker snap if you added the group while it was running. | |
$ sudo snap disable docker | |
$ sudo snap enable docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* run this at command prompt: bcdedit /set hypervisorlaunchtype off | |
* turn off windows feature "Virtual Machine Platform" | |
* reboot | |
ref: https://github.com/GNS3/gns3-gui/issues/3032#issuecomment-672571302 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global_config] | |
window_state = maximise | |
title_use_system_font = False | |
title_font = Sans 15 | |
[keybindings] | |
[profiles] | |
[[default]] | |
background_color = "#ffe4e1" | |
background_darkness = 0.85 | |
background_type = transparent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin_account="k8s-cyk-admin" | |
kubectl create serviceaccount ${admin_account} -n kube-system | |
kubectl create clusterrolebinding ${admin_account} --clusterrole=cluster-admin --serviceaccount=kube-system:${admin_account} | |
kubectl -n kube-system describe secrets $(kubectl -n kube-system get secret | grep ${admin_account} | awk '{print $1}') |
NewerOlder