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 { randomBytes } from "crypto"; | |
import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; | |
import { PutCommand, DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb"; | |
const client = new DynamoDBClient({ region: 'us-east-1' }); // Update with your desired region | |
const docClient = DynamoDBDocumentClient.from(client); | |
const fleet = [ | |
{ |
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
Descarga el paquete de instalacion | |
wget https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm | |
Instala la llave | |
wget https://s3.amazonaws.com/amazoncloudwatch-agent/assets/amazon-cloudwatch-agent.gpg | |
gpg --import amazon-cloudwatch-agent.gpg # obten el <key-value> | |
gpg --fingerprint <key-value> # obten el fingerprint | |
Descarga la firma y verifica el paquete |
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
from __future__ import print_function # Python 2/3 compatibility | |
import os, boto3, json | |
client = boto3.client('comprehend') | |
def lambda_handler(event, context): | |
sentiment=client.detect_sentiment(Text=event['inputTranscript'],LanguageCode='en')['Sentiment'] | |
sentimentscore=client.detect_sentiment(Text=event['inputTranscript'],LanguageCode='en')['SentimentScore'] | |
comment=event['inputTranscript'] | |
customeremail=event['customeremail'] |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetBucketLocation", | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": "arn:aws:s3:::*" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
➜ ~ cat become.yml | |
--- | |
- hosts: localhost | |
user: vagrant | |
tasks: | |
- shell: whoami | |
register: result | |
- debug: var=result.stdout |
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
stderr: e_des.c: In function 'des_init_key': | |
e_des.c:239:29: warning: assignment from incompatible pointer type [enabled by default] | |
dat->stream.cbc = enc ? des_t4_cbc_encrypt : des_t4_cbc_decrypt; | |
^ | |
e_des3.c: In function 'des_ede_init_key': | |
e_des3.c:284:29: warning: assignment from incompatible pointer type [enabled by default] | |
dat->stream.cbc = enc ? des_t4_ede3_cbc_encrypt : | |
^ | |
e_des3.c: In function 'des_ede3_init_key': | |
e_des3.c:334:29: warning: assignment from incompatible pointer type [enabled by default] |
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 pymongo | |
import datetime | |
import sys | |
# establish a connection to the database | |
connection = pymongo.MongoClient("mongodb://localhost") | |
def find_student_data_and_delete_min(student_id): | |
# get a handle to the school database | |
db=connection.students |
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
asasasasasa |
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
M202 Week 6 Video List | |
https://www.youtube.com/watch?v=IXwHDQ0zk9o | |
https://www.youtube.com/watch?v=5G8Axr7xQ_Y | |
https://www.youtube.com/watch?v=VZ5zI3Czl3A | |
https://www.youtube.com/watch?v=5gP_TXspM5I | |
https://www.youtube.com/watch?v=_ZovfTLkSZU | |
https://www.youtube.com/watch?v=YEh3lZUs7Cw | |
https://www.youtube.com/watch?v=4fvN1Uzpn88 | |
https://www.youtube.com/watch?v=o14ssqlYxaQ |
NewerOlder