Skip to content

Instantly share code, notes, and snippets.

@IvanCl4udio
IvanCl4udio / for_bash_script.sh
Last active Jun 21, 2021
File Headers examples
View for_bash_script.sh
#!/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 / Maven Settings for Nexus.md
Created Jun 1, 2021
Maven Settings for use with Sonatype Nexus OSS 3
View Maven Settings for Nexus.md

Maven Settings for use with Sonatype Nexus OSS 3

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

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 / Java11_PopOS.markdown
Last active May 19, 2021
How install and config Java 11 on PopOS
View Java11_PopOS.markdown

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 / Description.markdown
Last active Sep 26, 2019
How fix error Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test on CircleCI
View Description.markdown

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 / gist:b606735bedcdcdea7cb7a9790d96ca74
Last active May 19, 2021
How configure P4Merge as merge and diff tool on Linux
View gist:b606735bedcdcdea7cb7a9790d96ca74

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