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
<div class="w-full max-w-xs bg-white"> | |
<div class="max-w-sm rounded overflow-hidden shadow-lg"> | |
<div class="bg-scroll bg-top h-64 relative" style="background-image:url(https://pbs.twimg.com/profile_images/885868801232961537/b1F6H4KC_400x400.jpg);"> | |
<span class="text-2xl absolute pin-b pin-r font-light text-right align-text-bottom text-white"> | |
Jonathan Reinink | |
</span> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<projectDescription> | |
<name>gs-accessing-data-jpa-complete</name> | |
<comment></comment> | |
<projects> | |
</projects> | |
<buildSpec> | |
<buildCommand> | |
<name>org.eclipse.jdt.core.javabuilder</name> | |
<arguments> |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "", | |
"Parameters": { | |
"VPCCidrBlock": { | |
"Description": "Select CIDR Block for VPC", | |
"Type": "String", | |
"Default": "10.0.0.0/16" | |
}, | |
"Subnet1Cidrblock": { |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Metadata": { | |
"AWS::CloudFormation::Designer": { | |
"efe6e8a5-83b8-44fe-9a93-c3ea86b57fe7": { | |
"size": { | |
"width": 60, | |
"height": 60 | |
}, | |
"position": { |
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
package com.app.controller; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.web.servlet.error.ErrorAttributes; | |
import org.springframework.boot.web.servlet.error.ErrorController; | |
import org.springframework.util.Assert; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.web.context.request.ServletWebRequest; | |
import org.springframework.web.context.request.WebRequest; |
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 cleans every cloudmap and every service | |
# from https://www.appmeshworkshop.com/cleanup/cloudmap/ | |
NAMESPACE=$(aws servicediscovery list-namespaces | \ | |
jq -r ' .Namespaces[] | | |
select ( .Properties.HttpProperties.HttpName == "appmeshworkshop.pvt.local" ) | .Id '); | |
SERVICE_ID=$(aws servicediscovery list-services --filters Name="NAMESPACE_ID",Values=$NAMESPACE,Condition="EQ" | jq -r ' .Services[] | [ .Id ] | @tsv ' ) | |
aws servicediscovery list-instances --service-id $SERVICE_ID | jq -r ' .Instances[] | [ .Id ] | @tsv ' |\ | |
while IFS=$'\t' read -r instanceId; do |
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
#!/usr/bin/env bash | |
set -e | |
IFS='|' | |
help_output() { | |
echo "usage: amplify-push <--environment|-e <name>> <--simple|-s>" | |
echo " --environment The name of the Amplify environment to use" | |
echo " --simple Optional simple flag auto-includes stack info from env cache" | |
exit 1 | |
} | |
init_env() { |
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
func getBuildpackName(context packit.BuildContext) (string, error) { | |
var conf packit.BuildpackInfo | |
if _, err := toml.DecodeFile(filepath.Join(context.CNBPath, "buildpack.toml"), &conf); err != nil { | |
return "", err | |
} | |
return conf.Name, nil | |
} |
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
{ | |
"identifiers":{ | |
"email":"sample@mail.com", | |
"uuid": "1x2y3z", | |
"custom": { | |
"user_loyalty_id":"xyz123" | |
} | |
}, | |
"attributes":{ | |
"email_optin":true, |
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
curl -o docker-compose -L "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-$(uname -i)" | |
mkdir -p ~/.docker/cli-plugins | |
cp ./docker-compose ~/.docker/cli-plugins/docker-compose | |
sudo chmod +x ~/.docker/cli-plugins/docker-compose | |
docker help |