A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
| --- | |
| - name: To enable IMDSv2 in AWS EC2 instances | |
| hosts: localhost | |
| vars: | |
| regions: ["eu-north-1", "ap-south-1", "eu-west-3", "eu-west-2", "eu-west-1", "ap-northeast-2", "ap-northeast-1", "sa-east-1", "ca-central-1", "ap-southeast-1", "ap-southeast-2", "eu-central-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2"] | |
| shell_file: "modify_instance_metadata_options.sh" | |
| tasks: | |
| - name: get instance info | |
| local_action: |
| #!/bin/bash | |
| #set these in your environment/profile (NOT HERE) | |
| AWS_ACCESS_KEY="" | |
| AWS_SECRET_KEY="" | |
| function s3get { | |
| #helper functions | |
| function fail { echo "$1" > /dev/stderr; exit 1; } | |
| #dependency check |
| // A quick script for converting Medium HTML files to Markdown, suitable for use in a static file generator such as Hugo or Jekyll | |
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "regexp" |
| # AlpineLinux 3.5 | |
| new_http_archive( | |
| name = "docker_alpinelinux", | |
| url = "https://nl.alpinelinux.org/alpine/v3.5/releases/x86_64/alpine-minirootfs-3.5.1-x86_64.tar.gz", | |
| build_file = "alpinelinux.BUILD", | |
| sha256 = "fa17f25ded0b29d94d8cc2d9aabb6f737f4b987c42fe8a6d11e05cfe2c52a64c", | |
| ) |
| Test |
| # The full public facing url | |
| #root_url = %(protocol)s://%(domain)s:%(http_port)s/ | |
| root_url = http://localhost:80/grafana/ |
| [nosetests] | |
| verbosity=3 | |
| with-coverage=1 | |
| cover-branches=1 | |
| cover-xml=1 | |
| cover-xml-file=./coverage.xml | |
| cover-min-percentage=66 | |
| with-profile=1 |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
| http { | |
| client_max_body_size 20M; | |
| upstream influxdb { | |
| server server1:8086; | |
| server server2:8086; | |
| } | |
| upstream relay { | |
| server server1:9096; | |
| server server2:9096; |
A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]