Skip to content

Instantly share code, notes, and snippets.

View mcgivrer's full-sized avatar

Frédéric Delorme mcgivrer

View GitHub Profile
@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 Tools survival guide
created 2022
author Fréédric Delorme
description 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
@mcgivrer
mcgivrer / git-survival-guide.md
Last active April 13, 2026 08:02
Humble GIT Survival Guide
title Git Survival Guide
author Frédéric Delorme
date 2026-APR-13
version 1.0.6
description This document intends to provide some help on git usage. Some parts are from their respective author (see provided links).
tags git, branch, tag, flow

Humble Git Survival Guide

@mcgivrer
mcgivrer / InputHandler.java
Last active April 2, 2021 23:17
A Simple InputHandler with action vs. key mapping, mainly for gaming purpose
/**
* The <code>InputHandler</code> is implementing the <code>KeyListener</code> to
* be the keyboard manager. It is mapping some <code>keyEvent</code> code to
* possible <code>ACTIONS</code>.
* <ul>
* <li>the <code>keyMapping</code> are the map containing the mapping between
* some KeyCode to <code>ACTIONS</code> values,</li>
* <li>the internal <code>keys</code> map contains all keys status as boolean
* values,</li>
* <li>the <code>actions</code> contains all Action events produced.</li>
@mcgivrer
mcgivrer / regex.md
Last active August 12, 2020 08:26
Reg Ex Survivor guide
@mcgivrer
mcgivrer / Hosts
Created June 21, 2020 23:36
Hosts
192.168.1.116 gitlab. Raspbuntu. Local
@mcgivrer
mcgivrer / .gitignore
Last active August 2, 2023 23:52
Java build script v4.2: an optimized version with javadoc generation, unit tests execution from /src/test (need Junit5 standalone CLI) and an epub generation (need pandoc) from markdown files in /docs.
# build v4.2
# Copyright 2023 Frederic Delorme (McGivrer) fredericDOTdelormeATgmailDOTcom
.settings/
target/
.idea/
*.iml
.project
.classpath
@mcgivrer
mcgivrer / basic-java-survivor-guide.md
Last active April 1, 2025 11:52
Basic Java CLI Survivor Guide
subtitle Java is a programming language developed by Oracle (formerly by Sun Microsystems).
author Frédéric Delorme
createdAt 2020-09-23
updatedAt 2025-04-01
copyright 2025
description A comprehensive guide to navigating the tools and command-line utilities in the Java ecosystem.
license MIT
@mcgivrer
mcgivrer / Build-README.md
Last active May 13, 2020 09:40
a buils script for java project

Build

This very useful build.sh script allow you to build any java project with the maven inspired file structure below. It is particularly adapeted to very light machine : ARM archtecture based ones a.k.a. RaspberryPi, OrangePi, BananaPi, etc ...

It is using only bash, javac, java,jar and git command line instructions.

Project Structure