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
| 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
| # 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
| 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
| 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
| import javax.net.ssl.SSLSocket; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import java.io.*; | |
| import java.net.InetSocketAddress; | |
| import java.nio.charset.StandardCharsets; | |
| import java.time.Instant; | |
| import java.time.ZoneOffset; | |
| import java.time.ZonedDateTime; | |
| /** |
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 http from 'k6/http'; | |
| import { check } from "k6"; | |
| export let options = { | |
| stages: [ | |
| // Ramp-up from 1 to 5 VUs in 5s | |
| { duration: "5s", target: 5 }, | |
| // Stay at rest on 5 VUs for 10s | |
| { duration: "10s", target: 5 }, | |
| // Ramp-down from 5 to 0 VUs for 5s | |
| { duration: "5s", target: 0 } |
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
| apiVersion: 1 | |
| providers: | |
| - name: 'default' | |
| org_id: 1 | |
| folder: '' | |
| type: 'file' | |
| options: | |
| path: /var/lib/grafana/dashboards |
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
| apiVersion: 1 | |
| datasources: | |
| - name: k6influxdb | |
| type: influxdb | |
| access: proxy | |
| database: k6 | |
| url: http://influxdb:8086 | |
| isDefault: true |
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
| version: '3.4' | |
| networks: | |
| k6: | |
| grafana: | |
| services: | |
| influxdb: | |
| image: influxdb:latest | |
| networks: | |
| - k6 | |
| - grafana |