Skip to content

Instantly share code, notes, and snippets.

View mcgivrer's full-sized avatar
🌐
Work onto a Platform !

Frédéric Delorme mcgivrer

🌐
Work onto a Platform !
View GitHub Profile
@mcgivrer
mcgivrer / Vector2d.java
Created March 3, 2023 20:25
A Vector2d implmentation class to compute some 2D vector math
import java.util.List;
import java.util.Objects;
/**
* {@link Vector2d} class is to define, manage and operate 2D Vector.
* <p>
* eg.usage :
*
* <pre>
* // create a vector
@mcgivrer
mcgivrer / MAVEN_README.md
Last active October 20, 2022 14:18
Maven with JUnit 5 + Cucumber project on a Github Repo

Maven Template

Here is a maven template file to :

  • create JAR
  • Javadoc
  • execute Unit and Cucumber Tests
  • build Shaded JAR
  • generate epub+pdf from 'docs/' markdown files
  • push github pages from 'docs/' markdown files
@mcgivrer
mcgivrer / .bash_aliases
Created September 15, 2022 14:46
Useful aliases
#!/bin/bash
alias l='ls --color=yes'
alias ll='l -l'
alias mci='mvn clean install'
alias mcin='mci -DskipTests=true'
alias mpp='mvn release:prepare'
alias mpperf='mvn release:perform'
alias idea='idea64.exe %1 &'
alias ltree="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'"
@mcgivrer
mcgivrer / Installing-and-using-WSL2-Ubuntnu.md
Last active September 2, 2022 12:33
Installing and using WSL2+Ubuntu

Installing and using WSL2+Ubuntu

Installing

WSL 2

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
@mcgivrer
mcgivrer / pom-with-junit5
Created July 27, 2022 09:47
Maven, Junit5 and Cucumber test execution
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>core</groupId>
<artifactId>usecasetdd</artifactId>
<version>0.0.2-SNAPSHOT</version>
<name>UseCaseTDD</name>
<description>A demonstration project on how to create sustainable project.</description>
<inceptionYear>2022</inceptionYear>
<properties>
@mcgivrer
mcgivrer / intellij-trick-and-tips.md
Created April 19, 2022 13:51
IntelliJ Trick and Tips

IntelliJ Trick & Tips

Git Bash as a Terminal

Configure Git bash as terminal figure 1 - Configure Git Bash at defalut IntelliJ terminal

  1. Define the path and command line arguments to
@mcgivrer
mcgivrer / powerline-and-tmux.md
Last active March 16, 2022 23:22
Powerline and tmux
@mcgivrer
mcgivrer / create-java-project.sh
Last active May 16, 2022 15:33
Generate a Java project from scratch (v2)
#!/bin/bash
if [ $1 -eq ""]; then
#---- Display help message ---------------------------------------
echo -e "Command line: $0
Usage:
-------
$0 -n [project_name] -p [project_version] -a [author_name] -e [author_email] -j [java_version] -k [app_package_name]
where:
- p [project_name] name of the project directory to be generated (will be used capitalized as application name and main class),
- v [project_version] the version for the project to be initialized
@mcgivrer
mcgivrer / tools-survival-guide.md
Last active May 4, 2022 13:42
Tools survival guide
title created author description
Tools survival guide
2022
Fréédric Delorme
some useful information for any user or developer using Linux

Tools Survival Guide

Tmux

@mcgivrer
mcgivrer / README.md
Last active February 4, 2022 10:45
Maven POM with packaging, producing an archive containing the a jar and some launching scripts

README

The structure of this project template is as follow:

[projectRoot]
|_ src
|  |_ assembly
|  |  |_scripts
| | |_dep.xml