Skip to content

Instantly share code, notes, and snippets.

@grofoli
grofoli / credential-report.sh
Last active November 2, 2022 21:42
Get credential report with aws cli 2.x
#!/bin/bash
# the credential report is a base64 encoded CSV file, which contains also a column password_last_changed
# this script has been tested with aws cli 2.0.8, but it should be quite similar with the SDK:
# https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html#getting-credential-reports-api
# Generate a report. This is possible every 4 hours currently.
aws iam generate-credential-report > /dev/null
# Download report.
@grofoli
grofoli / pom2.xml
Created February 4, 2014 21:18
Sample usage of yuicompressor-maven.plugin 2
<plugins>
<!-- Plugin git repo: https://github.com/davidB/yuicompressor-maven-plugin. -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.3.3</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
@grofoli
grofoli / pom1.xml
Created February 1, 2014 14:12
Sample usage of yuicompressor-maven.plugin
<!-- Plugin git repo: https://github.com/davidB/yuicompressor-maven-plugin. -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.3.3</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>