Skip to content

Instantly share code, notes, and snippets.

View IvanCl4udio's full-sized avatar

Ivan Cl4udio IvanCl4udio

View GitHub Profile
@IvanCl4udio
IvanCl4udio / datatables-with-bootstrap4.markdown
Created August 10, 2019 11:20
Datatables with Bootstrap4
@IvanCl4udio
IvanCl4udio / Description.markdown
Last active September 26, 2019 10:40
How fix error Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test on CircleCI

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin


To fix that you will need change the configuration of maven-surefire-plugin on pom.xml from project to disable useSystemClassLoader.

Below you will find the excerpt of the file that should be changed.

@IvanCl4udio
IvanCl4udio / create_database.md
Last active May 19, 2021 10:24
How create a new database in PostgreSQL

How create a new database in PostgreSQL

Access the sql console and run the following command:

CREATE DATABASE "example_db"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'en-US'
LC_CTYPE = 'en-US'
@IvanCl4udio
IvanCl4udio / Maven Settings for Nexus.md
Created June 1, 2021 12:01
Maven Settings for use with Sonatype Nexus OSS 3

Maven Settings for use with Sonatype Nexus OSS 3

@IvanCl4udio
IvanCl4udio / for_bash_script.sh
Last active June 21, 2021 09:41
File Headers examples
#!/bin/bash
# <Put here the purpose of the script>
#
# Copyright <Put year here> <Put your name or company name here>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@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
@IvanCl4udio
IvanCl4udio / Java11_PopOS.markdown
Last active April 27, 2023 22:17
How install and config Java 11 on PopOS

How install and config Java 11 on PopOS

Introduction

PopOS is created from Ubuntu, so the configuration for Java environment can be follow the same way. We need only install the new version from the JDK and automatically it will be set as default. However, if you like rollback to previously version that was installed before, you can use the last step to do that.

Steps

Install the JDK 11

sudo apt update

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