Skip to content

Instantly share code, notes, and snippets.

View Dmitry1987's full-sized avatar

Dmitry Shmakov Dmitry1987

  • TangentLogic
  • USA, California
View GitHub Profile
gitlab-runner@f7b55ade9c83:~/code$ az login --service-principal --username ${AZ_ANSIBLE_USER} --password ${AZ_ANSIBLE_PASS} --tenant ${AZ_ANSIBLE_TENANT} --debug
Command arguments: ['login', '--service-principal', '--username', 'xxxxx', '--password', 'xxxx', '--tenant', 'xxxx', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7fd389edc598>, <function OutputProducer.on_global_arguments at 0x7fd389cb97b8>, <function CLIQuery.on_global_arguments at 0x7fd389a4e9d8>]
Event: CommandInvoker.OnPreCommandTableCreate []
Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'mana
Dmitry1987 / Dockerfile
Created January 21, 2020 09:43
FROM python:3.6-buster
ARG NB_USER="ds-team"
ARG NB_UID="1000"
ARG NB_GID="100"
USER root
# Install all OS dependencies for notebook server that starts but lacks all
# features (e.g., download as all possible file formats)
Dmitry1987 /
Created September 17, 2019 01:05
[Python 3] List last access time of all AWS IAM Users access keys
import boto3
import datetime
from import tzutc
from os import environ
import pandas as pd
# Init the AWS clients
resource = boto3.resource('iam')
client = boto3.client('iam')

Keybase proof

I hereby claim:

  • I am dmitry1987 on github.
  • I am dmitry1987 ( on keybase.
  • I have a public key ASAPWW_66VjA7sYlKU-ad_1MxaJ10HMLs_Rc5DIXr8Jtzwo

To claim this, I am signing this object: