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
// Without nat gateways, we need to create an interface endpoint | |
// for each service we need to access in a private subnet. | |
// Each vpc endpoint costs ~$0.01 per hour ($7.60/month), so we should | |
// try to minimise the number of endpoints we create. | |
this.addInterfaceEndpoints(this.vpc, [ | |
[ec2.InterfaceVpcEndpointAwsService.BATCH, true], | |
[ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_LOGS, true], | |
[ec2.InterfaceVpcEndpointAwsService.EC2, true], | |
[ec2.InterfaceVpcEndpointAwsService.EC2_MESSAGES, true], | |
[ec2.InterfaceVpcEndpointAwsService.ECR, 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
#!/bin/bash | |
##################################################################### | |
# | |
# A macOS dev env setup script updated for a Big Sur | |
# install (08/2021). There isn't anything macos specific in here | |
# though, i just haven't tested it elsewhere. | |
# | |
# I have a seperate script that setups a fresh macOS install with | |
# a useful set of software applicatiions that you might want to run |
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
#!/bin/bash | |
##################################################################### | |
# | |
# A macOS software bootstrap script updated for a Big Sur | |
# install (08/2021). | |
# | |
# I have a seperate script that setups zsh and installs programming | |
# language toolchains that you would run after this if you are in | |
# software development game. |
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
#!/bin/bash | |
# Run outstanding system updates | |
echo "Updating system install..." | |
softwareupdate -ia --verbose | |
echo "" | |
# Install xcode cli development tools | |
echo "Installing xcode cli development tools..." | |
xcode-select --install |
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.example | |
import java.io.ByteArrayInputStream | |
import java.util.concurrent.atomic.AtomicInteger | |
import com.amazonaws.services.s3.AmazonS3ClientBuilder | |
import com.amazonaws.services.s3.model.ObjectMetadata | |
import com.google.cloud.storage.Storage.BlobListOption | |
import com.google.cloud.storage.{Blob, Bucket, StorageOptions} |
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 sh | |
PLAY_VERSION="2.0.4" | |
if [ -z "${JPDA_PORT}" ]; then | |
DEBUG_PARAM="" | |
else | |
DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${JPDA_PORT}" | |
fi |