Skip to content

Instantly share code, notes, and snippets.

View IvanCl4udio's full-sized avatar

Ivan Cl4udio IvanCl4udio

View GitHub Profile
@IvanCl4udio
IvanCl4udio / gist:b606735bedcdcdea7cb7a9790d96ca74
Last active January 7, 2024 02:06
How configure P4Merge as merge and diff tool on Linux

How configure P4Merge as merge and diff tool on Linux

If you like me use a Linux station to do your development and don't want to use the standard Git diff tool this Gist is for you.

Installation

  1. Download installation from Perforce Web Site

https://www.perforce.com/downloads/visual-merge-tool

@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 / datatables-with-bootstrap4.markdown
Created August 10, 2019 11:20
Datatables with Bootstrap4
@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
@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 / 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 / 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: