Skip to content

Instantly share code, notes, and snippets.

View IvanCl4udio's full-sized avatar

Ivan Cl4udio IvanCl4udio

View GitHub Profile
@IvanCl4udio
IvanCl4udio / init.vim
Created December 8, 2023 19:29
Neovim configuration
" ~/.config/nvim/init.vim
" Options
set background=dark
set clipboard=unnamedplus
set completeopt=noinsert,menuone,noselect
set cursorline
set hidden
set inccommand=split
set mouse=a
set number

How fix when WSL2 fails to start with a message of logon not allowed

Open a powershell with administrator privilegies and run:

powershell restart-service vmcompute
@IvanCl4udio
IvanCl4udio / Readme.md
Last active October 2, 2023 14:11
How install Ingress Nginx on k8s cluster

How install Ingress NGinx

helm upgrade --install ingress-nginx ingress-nginx \
  --repo https://kubernetes.github.io/ingress-nginx \
  --namespace ingress-nginx --create-namespace
  
@IvanCl4udio
IvanCl4udio / Readme.md
Last active October 2, 2023 14:28
How configure Bridge for KVM

How configure Bridge for KVM

  1. Show the connections with nmcli
sudo nmcli connection show

NAME               UUID                                  TYPE      DEVICE   
Conexão cabeada 1  f54c4eaa-528e-334f-855f-bcfe2417409a  ethernet  enp3s0f1 
@IvanCl4udio
IvanCl4udio / Howto.md
Last active October 2, 2023 14:29
How install CRI-O on Ubuntu 22.04 LTS

How install CRI-O on Ubuntu 22.04 LTS

OS=Debian_11

CRIO_VERSION=1.23

echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /"|sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
@IvanCl4udio
IvanCl4udio / Readme.md
Last active October 2, 2023 14:30
Disable IPV6 on Debian

How disable IPV6 on Debian

# Edit file /etc/sysctl.conf and add the following 
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1
@IvanCl4udio
IvanCl4udio / Readme.md
Last active October 2, 2023 14:32
Install CRI-O on Debian 11

How install CRI-O on Debian 11

# Create a variable with version of OS and CRIO accordingly
OS=Debian_11
CRIO_VERSION=1.24

# Add repos list
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/$OS/ /"|sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
@IvanCl4udio
IvanCl4udio / How_new_application_ubuntu_shortcut.md
Last active October 2, 2023 14:32
How create a new item on applications on Ubuntu

How create a new application on Applications Gnome

  1. Create a new file at directory, with the extension .desktop :
~/.local/share/applications
  1. Put the content below:
@IvanCl4udio
IvanCl4udio / Start_postgresql_docker.md
Last active October 2, 2023 14:33
How start a container docker with Postgresql

Postgresql Container

Start

docker run -d \
--name postgres \
-p 5432:5432 \
-e POSTGRES_PASSWORD=secret \
-e PGDATA=/var/lib/postgresql/data/pgdata \
@IvanCl4udio
IvanCl4udio / install_gluster.sh
Last active September 10, 2021 10:05
Simple GlusterFs single node (only for tests)
# Install on Debian 10
apt-get install glusterfs-server
# Enable and start GlusterFS SystemD Unit
systemctl enable glusterd
systemctl start glusterd
# Create directory for brick
mkdir -p /data/glusterfs/myvol1/brick1