Skip to content

Instantly share code, notes, and snippets.

View reneleonhardt's full-sized avatar
🏠
Working from home

Rene Leonhardt reneleonhardt

🏠
Working from home
View GitHub Profile
@robin-a-meade
robin-a-meade / versions-maven-plugin ignore versions.md
Last active August 1, 2025 09:14
versions-maven-plugin How to ignore alpha beta release candidate and milestone versions

versions-maven-plugin: How to ignore alpha, beta, release candidate, and milestone versions

Introduction

The versions-maven-plugin, by default, does not ignore versions ending with qualifier strings when searching for the latest version of an artifact.

For example, versions ending with -alpha.14, -beta3, -M-2, and -RC1 will be considered as valid upgrade candidates.

Suppose your project depends on version 3.2.1 of a certain artifact and then 3.3.0-beta is released. The versions-maven-plugin will, by default, consider that to be a valid upgrade.

@guillaume-martin
guillaume-martin / rds-logs-report
Created January 10, 2022 08:26
A script for automatically downloading log files from an AWS RDS instance and generating a report using pgbadger.
#!/bin/bash
# Downloads all the log files for a selected instance on a given day. Then
# generates a report using pgbadger.
# Requirements:
# - AWS CLI (https://github.com/aws/aws-cli)
# - pgbadger (https://github.com/darold/pgbadger)
# How to use:
# rds-logs-report <instance_id> <date>
@reberhardt7
reberhardt7 / export_issues.py
Created July 17, 2015 20:05
Github Issues Export: This script exports all issues from a repository, along with comments and events, into a JSON file. It also produces a Markdown file that can be used to easily view the issues.
"""
This script uses Github's API V3 with Basic Authentication to export issues from
a repository. The script saves a json file with all of the information from the
API for issues, comments, and events (on the issues), downloads all of the
images attached to issues, and generates a markdown file that can be rendered
into a basic HTML page crudely mimicking Github's issue page. If the gfm module
is available, the script will go ahead and render it itself.
In the end, you'll be left with a folder containing a raw .json file (which you
can use to extract information for your needs, or to import it somewhere else),