Skip to content

Instantly share code, notes, and snippets.

View jviney's full-sized avatar

Jonathan Viney jviney

  • Auckland, New Zealand
View GitHub Profile
# frozen_string_literal: true
module Aws
# Client for AWS Cognito Identity Provider using Secure Remote Password (SRP).
#
# This code is a direct translation of the Python version found here:
# https://github.com/capless/warrant/blob/ff2e4793d8479e770f2461ef7cbc0c15ee784395/warrant/aws_srp.py
class CognitoSrp
def initialize(username:, password:, pool_id:, client_id:, aws_client:)
@username = username
@jviney
jviney / sshpass.rb
Last active February 1, 2020 22:20
sshpass 1.06 for Homebrew
require 'formula'
class Sshpass < Formula
url 'http://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz'
homepage 'http://sourceforge.net/projects/sshpass'
sha256 'c6324fcee608b99a58f9870157dfa754837f8c48be3df0f5e2f3accf145dee60'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"