Skip to content

Instantly share code, notes, and snippets.

View mrpackethead's full-sized avatar
😁
Focusing

Andrew mrpackethead

😁
Focusing
  • Raindancers
  • Wellington, New Zealand
View GitHub Profile
import {
App,
Stack,
StackProps,
}
from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { StaticSite } from './staticSite';
<html>
<header><title>Hello world</title></header>
<body>
Hello World, This is Andrews web page about Orca
</body>
</html>
@mrpackethead
mrpackethead / error.html
Created January 22, 2024 03:26
error.html
<html>
<header><title>Hello world: Error</title></header>
<body>
Uh oh, you reached the error page!
</body>
</html>
@mrpackethead
mrpackethead / bedrock-chess.py
Last active August 2, 2024 12:23
AI Chess - LLama3 vs Antrophic3
import boto3
import json
import os
session = boto3.session.Session(profile_name='yourprofile', region_name='us-east-1')
bedrock = session.client('bedrock-runtime', 'us-east-1', endpoint_url='https://bedrock-runtime.us-east-1.amazonaws.com')
def answer_query(message_list, who):
if who == 'sonnet':
@mrpackethead
mrpackethead / gist:82c2ea029fa0191532831aae7b0d20ef
Created December 2, 2024 09:27
Add Ipv6 to existing CDK VPC Using IPAM Pools
import * as core from 'aws-cdk-lib';
import {
aws_ec2 as ec2,
} from 'aws-cdk-lib';
import * as constructs from 'constructs';
export interface AddIpv6ToExisitingVpcProps extends ec2.VpcProps {
ipv6IpamPoolId: string;
ipv6IpamScopeId: string;