# /etc/hosts
# /etc/resolv.conf
# /etc/nsswitch.conf
$ nslookup google.com
$ dig facebook.com
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
#!/usr/bin/env bash | |
set -e | |
name=${1} | |
[[ -z ${name} ]] && { | |
echo "Name must be provided." | |
exit 1 | |
} |
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
[defaults] | |
interpreter_python = /usr/bin/python3 |
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
{ | |
"root": "/etc/step-ca/certs/root_ca.crt", | |
"federatedRoots": null, | |
"crt": "/etc/step-ca/certs/intermediate_ca.crt", | |
"key": "/etc/step-ca/secrets/intermediate_ca_key", | |
"address": ":443", | |
"insecureAddress": "", | |
"dnsNames": [ | |
"ca.lab.internal" | |
], |
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
# https://github.com/lxc/incus/commit/b2cd793ae4ce016ca7da128cc2d14544c041c801 | |
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/using_selinux/changing-selinux-states-and-modes_using-selinux#enabling-selinux-on-systems-that-previously-had-it-disabled_changing-selinux-states-and-modes | |
semanage fcontext -a -t bin_t /var/run/incus_agent/incus-agent | |
restorecon -R /run/incus_agent | |
fixfiles -F onboot |
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
# EditorConfig is awesome: https://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 4 |
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
cat cloud-init-static-ip-container.yaml | incus config set <name> cloud-init.network-config - | |
cat cloud-init-static-ip-vm.yaml | incus config set <name> cloud-init.network-config - |
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
incus launch images:rockylinux/9/cloud test --profile rhel | |
incus launch images:rockylinux/9/cloud test-vm --vm --profile rhel --profile vm-config |
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
vim.opt.number = true | |
vim.opt.mouse = 'a' | |
vim.opt.ignorecase = true | |
vim.opt.smartcase = true | |
vim.opt.wrap = true | |
vim.opt.breakindent = true | |
vim.opt.tabstop = 2 | |
vim.opt.shiftwidth = 2 | |
vim.opt.expandtab = true | |
vim.opt.smarttab = true |
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 -s default-terminal "tmux-256color" | |
set -as terminal-overrides ",xterm*:Tc" | |
set -s escape-time 0 | |
set -g history-limit 50000 | |
set -g display-time 1000 | |
set -g mode-keys vi | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set -g automatic-rename off |
NewerOlder