Mufa | Redux | |
---|---|---|
Publish | fire or pub |
dispatch |
Subscribe | on or sub |
subscribe |
Unsubscribe | off(subscribe_return) |
subscribe_return() |
Event | String identifies the event | Literal object that must has type property which identifies the event (action) |
Message | Argument for each message fire(event_name, msg1,..., msgn) |
Property for each message in the action {type: event_name, msg1, msg2,... msgn} |
NPM | npm install mufa |
npm install redux |
View calculate-dynamodb-read-throughput.js
/** | |
* [calculate description] | |
* @method calculate | |
* @param {Number} itemsCount number of items to be read | |
* @param {Number} itemsRequiredTimeRead required time in seconds to read those items | |
* @param {Number} itemSize the size of each item in KB | |
* @param {Boolean} isStrongRead the consistency model of Read : Strong or eventual | |
* @return {Number} Read throughput | |
*/ | |
function calculate({itemsCount, itemsRequiredTimeRead, itemSize}, isStrongRead = true) { |
View main.sh
npm install --save prop-types; | |
npm update react react-dom enzyme; |
View mufa-vs-redux.md
View cat-role.sh
#!/bin/bash | |
ENDPOINT=http://169.254.169.254/latest/meta-data/iam/security-credentials/; | |
curl -s $ENDPOINT`curl -s $ENDPOINT` |
View 01-lambda-exec-role.yaml
# Should be deployed first as it exports "LambdaRoleExecutionARN" which is used by other stacks. | |
Resources: | |
LambdaRole: | |
Type: AWS::IAM::Role | |
Properties: | |
AssumeRolePolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- | |
Effect: Allow |
View open-python-jupyter-notebook.sh
#!/bin/bash | |
WS=/tmp/complete-python-bootcamp-notebook-udemy; | |
if [[ ! -d "$WS" ]]; then | |
git clone git@github.com:rathath-it/Complete-Python-Bootcamp.git $WS; | |
fi | |
cd $WS; | |
jupyter notebook; |
View README-Template.md
Project Title
One Paragraph of project description goes here
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
View vagrant-destory_all.sh
#!/bin/bash | |
for i in `vagrant global-status | grep virtualbox | awk '{ print $1 }'` ; do vagrant destroy $i ; done |
View install_aws_zsh_complete.sh
#!/bin/bash | |
# Retrieve the version of AWS | |
AWS_VERSION=$(aws --version | cut -f1 -d" " | cut -f2 -d"/"); | |
echo Your current AWS version is $AWS_VERSION; | |
REMOTE_PATH=https://raw.githubusercontent.com/aws/aws-cli/$AWS_VERSION/bin/aws_zsh_completer.sh | |
LOCAL_PATH=/usr/local/bin/aws_zsh_completer.sh; |
View README.md
Overview
According to the specified region, the script will search on all running instances, then it extracts the volumes ids attached to those EBS volumes, then it takes a snapshot for each volume with a consistent tagging approach.
Pre-requistes
- aws-cli 1.14.50 or later (https://github.com/aws/aws-cli/archive/1.14.50.tar.gz)
How to use
OlderNewer