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.List; | |
import java.util.Map; | |
import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration; | |
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; | |
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder; | |
import com.amazonaws.services.dynamodbv2.model.AttributeValue; | |
import com.amazonaws.services.dynamodbv2.model.ScanRequest; | |
import com.amazonaws.services.dynamodbv2.model.ScanResult; |
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
If you get the below error when you try to create branch, you can use the below command to resolve it. | |
Error: | |
error: src refspec 9.0.1 matches more than one. | |
Solution: | |
git push origin refs/heads/branchName:refs/heads/branchName |
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
{ | |
"Type" : "AWS::ApplicationAutoScaling::ScalingPolicy", | |
"Properties" : { | |
"PolicyName" : "MyScalingPolicy", | |
"PolicyType" : "TargetTrackingScaling", | |
"ResourceId" : "arn:aws:dynamodb:us-east-1:123456789012:table/books_table", | |
"ScalableDimension" : "dynamodb:table:WriteCapacityUnits", | |
"ServiceNamespace" : "dynamodb", | |
"TargetTrackingScalingPolicyConfiguration" : { | |
"PredefinedMetricSpecification": { |
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
//Run the below script on http://localhost:8000/shell/ | |
var dynamodb = new AWS.DynamoDB({ | |
region: 'us-east-1', | |
endpoint: "http://localhost:8000" | |
}); | |
var params = { | |
}; |
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
//Run the below script on http://localhost:8000/shell/ | |
var dynamodb = new AWS.DynamoDB({ | |
region: 'us-east-1', | |
endpoint: "http://localhost:8000" | |
}); | |
var params = { | |
TableName: "Movies" | |
}; |
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
du -hsx ridf* | sort -rh | head -10 |
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
Resources: | |
ItemsTable: | |
Type: "AWS::DynamoDB::Table" | |
Properties: | |
TableName: "InvoiceConfig" | |
AttributeDefinitions: | |
- AttributeName: "providerName" | |
AttributeType: "S" | |
KeySchema: | |
- AttributeName: "providerName" |
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.io.*; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class Solution { | |
public static void main(String[] args) { |
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
var dynamodb = new AWS.DynamoDB({ | |
region: 'us-east-1', | |
endpoint: "http://localhost:8000" | |
}); | |
var params = { | |
TableName: "Movies", | |
}; | |
function doPrint(response) { |
OlderNewer