A one paragraph description about the container.
These instructions will cover usage information and for the docker container
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
var HashTable = function() { | |
this._storage = []; | |
this._count = 0; | |
this._limit = 8; | |
} | |
HashTable.prototype.insert = function(key, value) { | |
//create an index for our storage location by passing it through our hashing function | |
var index = this.hashFunc(key, this._limit); |
DOCKER remove exited container | |
docker rm $(docker ps -a -f status=exited -f status=created -q) | |
#!/bin/bash | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
#!/bin/bash | |
# Usage: slackpost --text="123" <channel=???> | |
function slackpost { | |
for i in "$@" | |
do | |
case $i in | |
-t=*|--text=*) | |
TEXT="${i#*=}" |
cd ${bamboo.build.working.directory} | |
if [ -d "test-reports" ] 1> /dev/null 2>&1; then | |
curl -X POST --data-urlencode \ | |
'payload={ | |
"channel": "#SLACK-CHANNEL", | |
"username": "Bamboo Bot", | |
"text": "Built succesfully", | |
"icon_emoji": ":octocat:", | |
"attachments": [ | |
{ |
#!/bin/bash | |
# Usage: slackpost <token> <channel> <message> | |
# Enter the name of your slack host here - the thing that appears in your URL: | |
# https://slackhost.slack.com/ | |
slackhost=PUT_YOUR_HOST_HERE | |
token=$1 |
{ | |
"presets": [ "es2015", "flow" ], | |
"plugins": ["transform-object-rest-spread"] | |
} |
provider "aws" { | |
access_key = "${var.access_key}" | |
secret_key = "${var.secret_key}" | |
region = "${var.region}" | |
} | |
resource "aws_iam_role" "iam_for_terraform_lambda" { | |
name = "app_${var.app_env}_lambda" | |
assume_role_policy = <<EOF | |
{ |