Skip to content

Instantly share code, notes, and snippets.

@kutzi
kutzi / gist:716ae38d7968ff173965
Last active March 28, 2022 15:56
Parse latest from maven-metadata.xml
curl -s https://repository.sonatype.org/service/local/repo_groups/forge/content/com/adobe/flex/compiler/maven-metadata.xml | xmlstarlet sel -t -v "/metadata/versioning/versions/version" | sort --version-sort | tail -1
@kutzi
kutzi / completion-for-gradle.md
Last active October 12, 2015 12:26 — forked from nolanlawson/completion-for-gradle.md
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
{"lighthouseVersion":"1.5.2","generatedTime":"2017-02-16T07:44:14.142Z","initialUrl":"https://www.tipp24.com/","url":"https://www.tipp24.com/","audits":{"is-on-https":{"score":true,"displayValue":"","rawValue":true,"name":"is-on-https","category":"Security","description":"Uses HTTPS","helpText":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/https)."},"redirects-http":{"score":true,"displayValue":"","rawValue":true,"name":"redirects-http","category":"Security","description":"Redirects HTTP traffic to HTTPS","helpText":"If you've already set up HTTPS, make sure that you redirect all HTTP traffic to HTTPS. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/http-redirects-to-https)."},"service-wor