Follow the instructions here:
https://pypi.org/project/boto3-stubs/#pycharm
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 {StackProps} from "@aws-cdk/core"; | |
export interface BaseStackProps extends StackProps { | |
product: string; | |
environment: "development" | "production"; | |
} |
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
Resources: | |
Stream: | |
Type: AWS::Kinesis::Stream | |
Properties: | |
ShardCount: 2 | |
Name: request-logging | |
RetentionPeriodHours: 24 | |
StreamEncryption: | |
Fn::If: | |
- AwsCdkKinesisEncryptedStreamsUnsupportedRegions |
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
# Java List Utility - type jl or javalist at the command line to switch java versions | |
JAVALIST_FILE="/tmp/javalist.sh" | |
function loadjavalist { | |
if [ -f "$JAVALIST_FILE" ]; then | |
source ${JAVALIST_FILE} | |
echo "Current Java set to ${JAVA_NAME}!" | |
fi | |
} | |
function javalist { |
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
docker run --rm -it --platform linux/amd64 -w /bingos --entrypoint make -v /Users/lthompson/IdeaProjects/BingOS:/bingos -v /Users/lthompson/IdeaProjects/micos:/micos jett59/bingos-build "MICOS_PATH=/micos" | |
cp /Users/lthompson/IdeaProjects/BingOS/grubimage.iso ./micos.iso | |
qemu-system-x86_64 -cdrom "$(pwd)/micos.iso" |
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
# Switch to privileged user 'root' | |
sudo su | |
# Install Docker + git, enabling the docker process to start on boot | |
yum install -y docker git | |
systemctl enable --now docker | |
# Install Docker-Compose | |
curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose | |
chmod +x /usr/bin/docker-compose |
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 com.thing; | |
import com.google.common.io.Files; | |
import org.apache.spark.sql.Dataset; | |
import org.apache.spark.sql.Row; | |
import org.apache.spark.sql.SparkSession; | |
import lombok.extern.slf4j.Slf4j; | |
import java.awt.*; | |
import java.io.File; |
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
# Ref: https://gallery.ecr.aws/lambda/provided | |
# + https://docs.aws.amazon.com/lambda/latest/dg/runtimes-images.html | |
# + https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/ | |
FROM public.ecr.aws/lambda/provided:al2 | |
COPY bootstrap.sh ${LAMBDA_RUNTIME_DIR}/bootstrap | |
COPY function.sh ${LAMBDA_TASK_ROOT} | |
# Ref https://www.mongodb.com/docs/v6.0/tutorial/install-mongodb-on-amazon/ | |
SHELL ["/bin/bash", "-c"] |
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
#!/bin/sh | |
# Map input values from the GitHub Actions workflow to shell variables | |
MONGODB_VERSION="6.0" | |
MONGODB_REPLICA_SET="test-rs" | |
MONGODB_PORT="27017" | |
MONGO_CMD="mongosh" # for earlier versions use "mongo" | |
if [ -z "$MONGODB_VERSION" ]; then | |
echo "" |
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
#!/usr/bin/env bash | |
set -e | |
rm -rf node_modules | |
npm init -y | |
npm install mongodb --production | |
echo "before: $(du -sh node_modules)" | |
rm -rf node_modules/@aws-sdk | |
rm -rf node_modules/@aws-crypto |