-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New version with icons and supported versions files
- Loading branch information
1 parent
b1409e7
commit b189c54
Showing
5 changed files
with
72 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.5.4 | ||
2.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Check if a product name has been provided as an argument | ||
if [ -z "$1" ]; then | ||
echo "Usage: $0 <product_name>" | ||
exit 1 | ||
fi | ||
|
||
# Product name passed as an argument | ||
produit="$1" | ||
|
||
# URL of the API for the specified product | ||
url="https://endoflife.date/api/${produit}.json" | ||
|
||
# Perform the HTTP GET request with curl | ||
response=$(curl --silent --fail "$url") | ||
|
||
# Check if the request was successful | ||
if [ $? -ne 0 ]; then | ||
echo "Error: Unable to retrieve information for product '$produit'." | ||
exit 1 | ||
fi | ||
|
||
curl --silent --fail "$url" | jq . | ||
# Get the current date | ||
current_date=$(date +%Y-%m-%d) | ||
|
||
# Generate a Markdown file with a single table sorted by end of support date | ||
echo -e "# Version Support for $produit\n" > ${produit}_support.md | ||
|
||
echo "| Version | End of Support Date | LTS | Status |" >> ${produit}_support.md | ||
echo "|---------|------------------------|-----|--------|" >> ${produit}_support.md | ||
echo "$response" | jq -r --arg current_date "$current_date" '.[] | {cycle, eol, lts} | .status = (if (.eol | type) == "string" and .eol > $current_date then "Supported" elif (.eol | type) == "string" then "Outdated" else "Supported" end) | .lts_status = (if .lts == true then "YES" else "NO" end) | select(.eol != null) | [.] | sort_by(.eol)[] | "| " + .cycle + " | " + (.eol // "N/A") + " | " + .lts_status + " | " + .status + " |"' >> ${produit}_support.md | ||
|
||
# Indicate that the Markdown file has been generated | ||
echo "The file ${produit}_support.md has been successfully generated." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env perl | ||
# mysqltuner.pl - Version 2.6.0 | ||
# mysqltuner.pl - Version 2.6.1 | ||
# High Performance MySQL Tuning Script | ||
# Copyright (C) 2015-2023 Jean-Marie Renouard - [email protected] | ||
# Copyright (C) 2006-2023 Major Hayden - [email protected] | ||
|
@@ -57,7 +57,7 @@ package main; | |
#use Env; | ||
|
||
# Set up a few variables for use in the script | ||
my $tunerversion = "2.6.0"; | ||
my $tunerversion = "2.6.1"; | ||
my ( @adjvars, @generalrec ); | ||
|
||
# Set defaults | ||
|
@@ -117,7 +117,8 @@ package main; | |
"dumpdir" => '', | ||
"feature" => '', | ||
"dbgpattern" => '', | ||
"defaultarch" => 64 | ||
"defaultarch" => 64, | ||
"noprettyicon" => 0 | ||
); | ||
|
||
# Gather the options from the command line | ||
|
@@ -154,7 +155,7 @@ package main; | |
'defaults-extra-file=s', 'dumpdir=s', | ||
'feature=s', 'dbgpattern=s', | ||
'defaultarch=i', 'experimental', | ||
'nondedicated' | ||
'nondedicated', 'noprettyicon' | ||
) | ||
or pod2usage( | ||
-exitval => 1, | ||
|
@@ -232,6 +233,7 @@ package main; | |
|
||
$opt{cvefile} = 'vulnerabilities.csv'; #CVE File for vulnerability checks | ||
} | ||
$opt{prettyicon}=0 if $opt{prettyicon}!=1; | ||
$opt{nocolor} = 1 if defined( $opt{outputfile} ); | ||
$opt{tbstat} = 0 if ( $opt{notbstat} == 1 ); # Don't print table information | ||
$opt{colstat} = 0 if ( $opt{nocolstat} == 1 ); # Don't print column information | ||
|
@@ -275,13 +277,24 @@ package main; | |
# Setting up the colors for the print styles | ||
my $me = `whoami`; | ||
$me =~ s/\n//g; | ||
|
||
|
||
my $good = ( $opt{nocolor} == 0 ) ? "[\e[0;32mOK\e[0m]" : "[OK]"; | ||
my $bad = ( $opt{nocolor} == 0 ) ? "[\e[0;31m!!\e[0m]" : "[!!]"; | ||
my $info = ( $opt{nocolor} == 0 ) ? "[\e[0;34m--\e[0m]" : "[--]"; | ||
my $deb = ( $opt{nocolor} == 0 ) ? "[\e[0;31mDG\e[0m]" : "[DG]"; | ||
my $cmd = ( $opt{nocolor} == 0 ) ? "\e[1;32m[CMD]($me)" : "[CMD]($me)"; | ||
my $end = ( $opt{nocolor} == 0 ) ? "\e[0m" : ""; | ||
|
||
if ($opt{prettyicon} == 1) { | ||
$good = "✔ "; | ||
$bad = "✘ "; | ||
$info = "ℹ "; | ||
$deb = "⚙ "; | ||
$cmd = "⌨️($me)"; | ||
$end = " "; | ||
} | ||
|
||
# Maximum lines of log output to read from end | ||
my $maxlines = 30000; | ||
|
||
|
@@ -7441,7 +7454,7 @@ sub which { | |
=head1 NAME | ||
MySQLTuner 2.6.0 - MySQL High Performance Tuning Script | ||
MySQLTuner 2.6.1 - MySQL High Performance Tuning Script | ||
=head1 IMPORTANT USAGE GUIDELINES | ||
|
@@ -7493,6 +7506,7 @@ =head1 OUTPUT OPTIONS | |
--verbose Print out all options (default: no verbose, dbstat, idxstat, sysstat, tbstat, pfstat) | ||
--color Print output in color | ||
--nocolor Don't print output in color | ||
--noprettyicon Print output with legacy tag [OK], [!!], [--], [CMD], ... | ||
--nogood Remove OK responses | ||
--nobad Remove negative/suggestion responses | ||
--noinfo Remove informational responses | ||
|