This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
import com.amazonaws.services.cognitoidp.AWSCognitoIdentityProviderClient; | |
import com.amazonaws.services.cognitoidp.model.*; | |
/** | |
* Demonstrates that it's possible to login with the original credentials | |
* after initiating the Forgot Password flow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Keith D Gregory, all rights reserved | |
package com.kdgregory.sandbox.spark.concordance; | |
import java.io.FileOutputStream; | |
import java.io.OutputStreamWriter; | |
import java.io.PrintWriter; | |
import java.util.List; | |
import org.apache.spark.SparkContext; | |
import org.apache.spark.api.java.JavaRDD; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Keith D Gregory, all rights reserved | |
package com.example.aws.kinesis; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import logging | |
import platform | |
import sys | |
import time | |
import traceback | |
class JSONFormatter: | |
"""A formatter for the standard logging module that converts a LogRecord into JSON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Keith D Gregory, all rights reserved | |
package com.kdgregory.sandbox.jdbc; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.UUID; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Keith D Gregory | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Main configuration: creates several SQS queues using a module, then | |
## combines their policies into an application role. | |
## | |
provider "aws" {} | |
module "notifications_queue" { | |
source = "./modules/sqs" | |
queue_name = "Notifications" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Main configuration: creates several SQS queues using a module, then | |
## combines their policies into an application role. | |
## | |
provider "aws" {} | |
module "notifications_queue" { | |
source = "./modules/sqs" | |
queue_name = "Notifications" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code has been placed in the public domain by the author. | |
// | |
// You may use, modify, and redistribute without restriction. | |
// | |
// Use of this software is on an "AS IS" BASIS, WITHOUT WARRANTIES OR | |
// CONDITIONS OF ANY KIND, either express or implied. | |
package com.kdgregory.example; | |
import java.util.HashSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// This code has been released into the public domain by the author. | |
// It may be used or modified without attribution. and is distributed | |
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | |
// either express or implied. | |
// | |
package com.kdgregory.sandbox.aws; | |
import com.amazonaws.ClientConfiguration; | |
import com.amazonaws.Protocol; |
OlderNewer