Skip to content

Instantly share code, notes, and snippets.

@welmarr
welmarr / managing-multiple-java-versions-with-maven.md
Last active December 17, 2025 08:20
In this article, I explore the process of handling multiple versions of Java with Maven. Specifically, I focus on resolving an error that occurs when running a new Spring Boot application (version 3.0.1) when attempting to run the "mvn clean install" command line on a system with Java 11.

Managing Multiple Java Versions with Maven 🤹 (without modifying JAVA_HOME almost)

Today, I try to run a new spring boot application (<version>3.0.1</version>) on my Windows 11 but, when I perform the command line mvn clean install (mvn -version [Apache Maven 3.8.6 | Java version: 11.0.15.1]), I have the following issue 👇

Execution repackage of goal org.springframework.boot:spring-boot
-maven-plugin:3.0.1:repackage failed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.1' due to an API incompatibility: org.codehaus.plexus.comp
onent.repository.exception.ComponentLookupException: org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version
of the Java Runtime only recognizes class file versions up to 55.0
@Nikdoge
Nikdoge / minecraft_offline_uuid.py
Last active July 12, 2025 06:50
Generate an offline minecraft UUID v3 based on the case sensitive player name
#!/usr/bin/env python3
#Gets username as string, returns Minecraft offline UUID as string
#Translated by Nikdoge from source in PHP https://gist.github.com/games647/2b6a00a8fc21fd3b88375f03c9e2e603
import hashlib
import sys
def main():
#Getting argument from command line as username to convert
#Printing UUID
Обеспечение корректной обработки If-Modified-Since имеет чрезвычайно важную роль, если мы боремся за органический трафик.
@xavierfoucrier
xavierfoucrier / gpg-signing.md
Last active January 26, 2026 16:18
GPG signing with Git and Github Desktop

GPG signing – git github-desktop

Here is a short guide that will help you setup your environment to create signed commits or signed tags with Git locally. This has been extensively tested on Windows with Git and the Github Desktop application: I use it every day for my professional development projects.

I you face any issue, feel free to leave a comment below.

Summary

  1. Sign commits or tags
  2. Key passphrase
  3. Disable signatures
  4. Renew a GPG key
@nico-lab
nico-lab / h264_qsv.txt
Last active June 22, 2025 18:59
ffmpeg -h encoder=h264_qsv
Encoder h264_qsv [H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration)]:
General capabilities: delay hybrid
Threading capabilities: none
Supported hardware devices: qsv qsv qsv
Supported pixel formats: nv12 qsv
h264_qsv encoder AVOptions:
-async_depth <int> E..V....... Maximum processing parallelism (from 1 to INT_MAX) (default 4)
-preset <int> E..V....... (from 0 to 7) (default 0)
veryfast 7 E..V.......
faster 6 E..V.......
@Killeroid
Killeroid / gpg-import-and-export-instructions.md
Created October 18, 2017 11:51
How to export and import gpg keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Gotten from the RedHat GPG migration manual

Backup the public and secret keyrings and trust database

## Export all public keys

gpg -a --export >mypubkeys.asc