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
import openai | |
import boto3 | |
import json | |
import time | |
from typing import Dict, List | |
openai.api_key = '### SET YOUR OPENAPI API KEY HERE ###' | |
session = boto3.session.Session() | |
client = session.client('iam') |
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
{ | |
"a4b": { | |
"profile": "arn:{Partition}:a4b:{Region}:{Account}:profile/{Resource_id}", | |
"room": "arn:{Partition}:a4b:{Region}:{Account}:room/{Resource_id}", | |
"device": "arn:{Partition}:a4b:{Region}:{Account}:device/{Resource_id}", | |
"skillgroup": "arn:{Partition}:a4b:{Region}:{Account}:skill-group/{Resource_id}", | |
"user": "arn:{Partition}:a4b:{Region}:{Account}:user/{Resource_id}", | |
"addressbook": "arn:{Partition}:a4b:{Region}:{Account}:address-book/{Resource_id}", | |
"conferenceprovider": "arn:{Partition}:a4b:{Region}:{Account}:conference-provider/{Resource_id}", | |
"contact": "arn:{Partition}:a4b:{Region}:{Account}:contact/{Resource_id}", |
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
let pancakeSwapAbi = [ | |
{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"}, | |
]; | |
let tokenAbi = [ | |
{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}, | |
]; | |
const Web3 = require('web3'); | |
/* | |
Required Node.js |
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
route53domains:RegisterDomain | |
route53domains:RenewDomain | |
route53domains:TransferDomain | |
ec2:ModifyReservedInstances | |
ec2:PurchaseHostReservation | |
ec2:PurchaseReservedInstancesOffering | |
ec2:PurchaseScheduledInstances | |
rds:PurchaseReservedDBInstancesOffering | |
dynamodb:PurchaseReservedCapacityOfferings | |
s3:PutObjectRetention |
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 | |
# This is a script that unsubscribes an email address from AWS junk mail. | |
# If the script breaks it might be the magic numbers that needs to change. | |
# Send the form while tracing the request in your browser to find the new values. | |
# https://pages.awscloud.com/communication-preferences | |
unsubscribe_aws_email() { | |
curl "https://pages.awscloud.com/index.php/leadCapture/save2" \ | |
-H "Accept: application/json" \ |
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
import * as fs from "fs"; | |
import * as yaml from "js-yaml"; | |
import GraphQLTransform from "graphql-transformer-core"; | |
import DynamoDBModelTransformer from "graphql-dynamodb-transformer"; | |
import ModelAuthTransformer from "graphql-auth-transformer"; | |
import ModelConnectionTransformer from "graphql-connection-transformer"; | |
import SearchableModelTransformer from "graphql-elasticsearch-transformer"; | |
import VersionedModelTransformer from "graphql-versioned-transformer"; | |
import FunctionTransformer from "graphql-function-transformer"; |
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
AWSTemplateFormatVersion: 2010-09-09 | |
Description: 'authentication: Resources for hosting authentication using AWS Cognito, a @wolfeidau template' | |
Parameters: | |
AppName: | |
Description: Name of application, used in signup emails and naming of aws resources. | |
Type: String | |
AllowedPattern: '^[a-zA-Z0-9]*$' |
To setup sam local on an OSX system which is using homebrew.
Check if pip installed.
pip --version
If this returns.
| Title | Description
NewerOlder