This file contains hidden or 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
INSERT INTO authors ( | |
name, bio | |
) VALUES ( | |
$1, $2 | |
) | |
RETURNING *; |
This file contains hidden or 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
install_tools: | |
go install github.com/swaggo/swag/cmd/swag@latest | |
go install golang.org/x/tools/cmd/stringer | |
go install github.com/vektra/mockery/v2@latest | |
go install github.com/kyleconroy/sqlc/cmd/sqlc@latest | |
generate: | |
go generate ./... | |
test: |
This file contains hidden or 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
package internal | |
//go:generate mockery --all --keeptree |
This file contains hidden or 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 UserStatus int | |
const ( | |
Unverified UserStatus = iota | |
Verified | |
Suspended | |
) |
This file contains hidden or 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
a4b.amazonaws.com | |
acm-pca.amazonaws.com | |
acm.amazonaws.com | |
alexa-appkit.amazon.com | |
alexa-connectedhome.amazon.com | |
amazonmq.amazonaws.com | |
apigateway.amazonaws.com | |
application-autoscaling.amazonaws.com | |
appstream.application-autoscaling.amazonaws.com | |
appsync.amazonaws.com |
This file contains hidden or 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
PROFILE=test | |
echo "Please, provide MFA code:" | |
read MFA_CODE | |
ASSUMED_ROLE=$(aws sts assume-role --role-arn="$(aws configure get role_arn --profile $PROFILE)" --role-session-name=session --token-code=$MFA_CODE --serial-number="$(aws configure get mfa_serial --profile $PROFILE)" --output text) | |
ASSUMED_ROLE_ARRAY=( $ASSUMED_ROLE ) | |
if [ -z "$ASSUMED_ROLE_ARRAY" ] | |
then |
This file contains hidden or 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
provider "aws" { | |
region = "ap-southeast-1" | |
} | |
resource "aws_iam_role" "ec2_role" { | |
name = "ec2-role" | |
assume_role_policy = <<EOF | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ |
This file contains hidden or 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
package mongoTest | |
import com.github.mongobee.Mongobee; | |
import com.mongodb.Mongo; | |
import org.springframework.beans.factory.BeanFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.autoconfigure.mongo.MongoProperties; | |
import org.springframework.boot.context.properties.EnableConfigurationProperties; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; |
This file contains hidden or 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
package eu.ydp.esa.tts.controller.impl; | |
import com.github.tomakehurst.wiremock.junit.WireMockRule; | |
import io.vertx.rxjava.core.Vertx; | |
import io.vertx.rxjava.core.http.HttpClientRequest; | |
import io.vertx.rxjava.core.http.HttpClientResponse; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import java.util.concurrent.CountDownLatch; |
This file contains hidden or 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 io.vertx.core.DeploymentOptions; | |
import io.vertx.core.json.JsonArray; | |
import io.vertx.core.json.JsonObject; | |
import io.vertx.rxjava.core.Vertx; | |
import io.vertx.rxjava.ext.mongo.MongoService; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; | |
public class MongoCommandProblemTest { |
NewerOlder