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 |
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
FROM node:14.7.0 | |
#Install K6 | |
WORKDIR /tmp | |
ADD https://github.com/loadimpact/k6/releases/download/v0.27.1/k6-v0.27.1-linux64.tar.gz /tmp/k6-v0.27.1-linux64.tar.gz | |
RUN tar -xzf k6-v0.27.1-linux64.tar.gz | |
RUN mv k6-v0.27.1-linux64/k6 /usr/bin/k6 | |
#Install NPM dependencies | |
COPY loadtest-home /loadtest-home |