- What are the default host-level metrics for EC2?
- CPU
- Network
- Disk
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
(defparameter *nodes* '((balcony (you are on the balcony. a cool wind sways the blossoming trees.)) | |
(lounge-room (a catto snoozes on the lounge.)) | |
(kitchen (bread is proofing on the counter.)) | |
(office (clothes are hung up to dry.)) | |
(bathroom (small stones litter the tiled floor.)) | |
(bedroom (a few articles of clothing lay on the floor.)))) | |
(defparameter *edges* '((balcony (lounge-room inside door)) | |
(lounge-room (balcony outside door) |
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
# Mips program to reverse a string | |
# mips.s | |
.data | |
str: .space 128 # character buffer | |
.text | |
.globl main |
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 { RefObject, useEffect, useRef } from 'react'; | |
import styled from 'styled-components'; | |
const ModalDiv = styled.div` | |
z-index: auto; | |
display: flex; | |
position: fixed; | |
top: 0; | |
left: 0; | |
height: 100vh; |
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.myapplication | |
import org.springframework.beans.factory.annotation.Value | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.web.servlet.config.annotation.CorsRegistry | |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer | |
@Configuration | |
class WebServerConfiguration { |
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 org.springframework.web.cors.CorsUtils | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity | |
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter | |
@Configuration | |
class SecurityConfig : WebSecurityConfigurerAdapter() { | |
override fun configure(http: HttpSecurity) { | |
http | |
.authorizeRequests() |
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.myapplication.email | |
import arrow.core.Either | |
import org.junit.jupiter.api.Assertions.fail | |
import org.junit.jupiter.api.Test | |
import org.springframework.boot.test.context.SpringBootTest | |
import org.springframework.test.context.ActiveProfiles | |
import org.testcontainers.containers.localstack.LocalStackContainer | |
import org.testcontainers.utility.DockerImageName | |
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials |
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.myapplication.email | |
import arrow.core.Either | |
import org.springframework.stereotype.Component | |
import software.amazon.awssdk.services.ses.SesClient | |
import software.amazon.awssdk.services.ses.model.Body | |
import software.amazon.awssdk.services.ses.model.Content | |
import software.amazon.awssdk.services.ses.model.Destination | |
import software.amazon.awssdk.services.ses.model.Message | |
import software.amazon.awssdk.services.ses.model.SendEmailRequest |
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.myapplication.email | |
import org.springframework.beans.factory.annotation.Value | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.Configuration | |
import software.amazon.awssdk.regions.Region | |
import software.amazon.awssdk.services.ses.SesClient | |
@Configuration | |
class EmailClientConfiguration { |