Skip to content

Instantly share code, notes, and snippets.

View konstantinj's full-sized avatar

Konstantin konstantinj

View GitHub Profile
@konstantinj
konstantinj / home-office.py
Created May 5, 2020 19:05
A python script to automate otp in openvpn sessions
#!/usr/bin/env python3
import sys
# https://github.com/tadeck/onetimepass
import onetimepass as otp
# https://github.com/pexpect/pexpect
import pexpect
@konstantinj
konstantinj / gist:4c16c331cd8aecf3e77f7978e2c1b377
Created September 19, 2019 07:49
Export all AWS Route53 Records from all Hosted Zones to CSV files
aws route53 list-hosted-zones | jq -r '.HostedZones[] | .Id + " " + .Name' | xargs -l bash -c 'aws route53 list-resource-record-sets --hosted-zone-id $0 | jq -r ".ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @tsv" > ${1}csv'
ansible
automake
awscli
bcrypt
cli53
cmake
cmatrix
composer
coreutils
cowsay