Skip to content

Instantly share code, notes, and snippets.

@horseinthesky
horseinthesky / galaxyline.lua
Last active July 12, 2022 06:30
galaxyline.lua
local gl = require "galaxyline"
local vcs = require "galaxyline.providers.vcs"
local condition = require "galaxyline.condition"
local devicons = require "nvim-web-devicons"
local utils = require "utils"
local appearance = require "appearance"
local icons = appearance.icons
local theme_map = appearance.color_map[vim.g.colors_name] or appearance.color_map["gruvbox"]
local colors = theme_map[vim.opt.background:get()] or theme_map["dark"]
@superseb
superseb / k3s-etcd-commands.md
Last active April 27, 2024 06:08
k3s etcd commands

k3s etcd commands

etcd

Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):

Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:

curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version