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
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
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
[test] | |
aws_access_key_id = mykey | |
aws_secret_access_key = mykey | |
[dev-default] | |
aws_access_key_id = mykey | |
aws_secret_access_key = mykey | |
[prod-default] | |
aws_access_key_id = mykey |
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 | |
setProfile() { | |
export AWS_PROFILE=$1 | |
export AWS_DEFAULT_PROFILE=$1 | |
python ~/.aws/mfa.py --profile $1 $2 | |
} | |
alias awsp=setProfile |
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
{ | |
"editor.tabSize": 4, | |
"editor.detectIndentation": true, | |
"editor.formatOnSave": true, | |
"editor.fontFamily": "D2Coding, Menlo, Monaco, 'Courier New', monospace", | |
"workbench.startupEditor": "welcomePage", | |
"terminal.integrated.rendererType": "dom", | |
"terminal.external.osxExec": "iTerm2", | |
"terminal.integrated.fontFamily": "D2Coding", | |
"terminal.integrated.shell.linux": "/bin/zsh", |
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 | |
mkdir ~/Documents/Notebook | |
mkdir ~/Documents/GitHub | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install git | |
# install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
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
name=s3-sink | |
connector.class=io.confluent.connect.s3.S3SinkConnector | |
tasks.max=1 | |
topics=my-topic-name | |
s3.region=ap-northeast-2 | |
s3.bucket.name=my-bucket-name | |
s3.compression.type=gzip | |
s3.part.size=5242880 | |
flush.size=3 | |
storage.class=io.confluent.connect.s3.storage.S3Storage |
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
# Kafka broker IP addresses to connect to | |
bootstrap.servers=localhost:9092 | |
# Path to directory containing the connector jar and dependencies | |
plugin.path=/home/ec2-user/kafka/plugins | |
# Converters to use to convert keys and values | |
key.converter=org.apache.kafka.connect.storage.StringConverter | |
value.converter=org.apache.kafka.connect.storage.StringConverter |
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
class Person { | |
public name: string = "default" | |
public address: string = "default" | |
public age: number = 0; | |
public constructor(init?:Partial<Person>) { | |
Object.assign(this, init); | |
} | |
} |
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 boto3 | |
dynamodb = boto3.resource('dynamodb', 'region-name') | |
table = dynamodb.Table('table-name') | |
scan = table.scan( | |
ProjectionExpression='#k', | |
ExpressionAttributeNames={ | |
'#k': 'name' | |
} |
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 functools | |
def define_scope(function): | |
attribute = '_cache_' + function.__name__ | |
@property | |
@functools.wraps(function) | |
def decorator(self): | |
if not hasattr(self, attribute): | |
with tf.variable_scope(function.__name): |
NewerOlder