open-index/open-npm huggingface dataset:
npm package: @my-ideas/bb-create
Description: Create Bitbucket repository given a configuraiton file
Author: Tommaso Doninelli
Latest version: 0.1.7


There are no tests here! Use this at your own risk!

# Readme

A tiny script to create `Bitbucket` repositories using a configuration file, instead of relying on manual configuration 

Supported settings:
* Creation of the repo with its metadata (name, description, private/public, etc.)
* Enable pipeline and set environment variables
* Branch restrictions (number of review, number of passing builds)


Missing features
* Create HipChat notifications
* Test

# How to use

Install this module `npm install -g bb-create`

Get an [App Password](https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html) and write a `~/.bbcreate-settings.json` config file
```
{
    "username": <YOUR_USER_NAME>,
    "appPassword": <YES_EXACTLY_WHAT_HE_SAYS> 
}
```

Then write the definition of your Bitbucket repo in a JSON file. 

Last step, run `bb-create <REPO_DEFINITION>.json`


## How to define a Bitbucket repository
See `example-repo.json` and refer to the Atlassian documentaiton 
 * [Repository](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D)
 * [Pipeline configuration](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pipelines_config)
 * [BRanch restrictions](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/branch-restrictions)
npm package: @my-ideas/cftpl
Description: Add Mustache templating to AWS CLoudFormation
Author: Tommaso Doninelli
Latest version: 0.1.16

[![Build Status](https://travis-ci.org/totomz/node-cf.svg?branch=master)](https://travis-ci.org/totomz/node-cf)

# What
`cftpl` is a commandline utility to add a template engine ([Mustache](https://mustache.github.io/)) to [AWS CloudFormation](https://aws.amazon.com/it/cloudformation)

# Usage
1. Install: `npm install -g @my-ideas/cftpl`
2. Execution: `cftpl <create|changeset> <template> [--stage <stage>] [--profile <profile>]` 

Action `create` perform an upsert of the stack (create if doesn't exist, otherwise update). `changeset` create a ChangeSet with the given template

* `--profile ,profile>`: the [AWS profile](http://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html) to use to call CloudFormation (this is the **only** supported credential settings)
* `--dry-run`: if you specify this parameter, CloudFormation will not be called
* `--stage <stage>`: Add a variable `stages: [{name: <stage>}]` to the template metadata - this is usefull to create separate stack with the same template (see the examples in `/test`)


# How to write a template
The templating engine is [Mustache](https://mustache.github.io/), refer to Mustache' suser manual. 

* Check `test/templates/simple-sns.yaml` for a fully documented how-to write a template
* Check `test/gtemplates/test-api-gateway/stack.tpl` to see how to load external files in the template

For large templates it is possible to upload the stack generated to S3 by adding the property `Metadata.aws.template.__use_s3=bucket` . See `test/templates/simple-sns-s3-live.yaml`

## Custom functions
The following functions can be used inside a template:
* `{{funcTime}}`: returns the value of `new Date().getTime()` - @see `simple-sns-function.yaml`
* `{{#jsonize}}a.key{{/jsonize}}`: Return the json representation of the given key - @see `test-simple-functions.json`
* `{{#jsonizeEscapeQuotes}}a.key{{/jsonizeEscapeQuotes}},`: serialize object `a.key` in JSON and escape all the quotes (which means, convert the object in a string that you can include in other strings. @see `/test/templates/test-api-gateway/stack-functions.tpl`)

Notes:
* The name of the stack is in the template metadata

# How to count for difference in a ChangeSet
**BUG: If there are no changes, aws returns an error!**
`cftpl changeset test/templates/simple-sns.yaml --profile porketta --stage gamma | tail -n +4 |  jq '.Changes | length'`
npm package: @my-ideas/winston-cloudwatch
Description: Send logs to Amazon Cloudwatch using Winston.
Author: tommaso.doninelli@my-ideas.it
Latest version: 1.13.1

# @my-ideas/winston-cloudwatch 
[![Build Status](https://travis-ci.org/my-ideas/winston-cloudwatch.svg?branch=master)](https://travis-ci.org/my-ideas/winston-cloudwatch)

Forked from [v1.13.1](https://github.com/lazywithclass/winston-cloudwatch/blob/master/CHANGELOG.md#1131)

# Why?

Mainly to reduce the footprint of this great module!

* support for node v8 and higher only
* `aws-sdk` and `winston` are peer dependencies
* removed `chalk` - used only to colorize debug statement
* removed `lodash` - where used only `_.isEmpty` which has been replaced with a lodash-compatible function
* removed `proxy-agent` - no support for http proxy in this version


## Todo
* Remove `async`