This gist contains lists of modules available in
in AWS Lambda.
# -*- coding: utf-8 -*- | |
import unicodedata | |
""" Normalise (normalize) unicode data in Python to remove umlauts, accents etc. """ | |
data = u'naïve café' | |
normal = unicodedata.normalize('NFKD', data).encode('ASCII', 'ignore') | |
print normal | |
<form method="post"> | |
{{ form.hidden_tag() }} | |
{{ form.example }} | |
<input type="submit"> | |
</form> |
from flask import Flask, request | |
from flask.ext.sqlalchemy import SQLAlchemy | |
import unittest | |
app = Flask(__name__) | |
app.debug = True | |
db = SQLAlchemy() | |
db.init_app(app) |
# Join multiple lines without new line | |
value: > | |
part 1 | |
part 2 | |
# Join with newline | |
value2: | | |
line 1 | |
line 2 |
This gist contains lists of modules available in
in AWS Lambda.
I created this because I was frusterated by having to change the integer values when the environments changed for my projects. A simple update of PHP 5.6 (I think it was PHP 5.6.16 to 5.6.17) changed the integer values, which are usually what is suggested to be used in parameters.yml or config.yml.
By using the constants, you don't have to worry about stupid stuff like that. (Since that's what they were designed for.)
# | |
# Powershell script that deploys the dacpac to (localdb)\MSSQLLocalDB that the integration tests can run against. | |
# | |
$dbname = "xxx" | |
$dacpacname = "xxx.dacpac" | |
# Locate dacpac | |
$dacpac = gci -Recurse -Filter "$dacpacname" -ErrorAction SilentlyContinue | Select -First 1 |
Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.
This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.
There is a companion feature matrix of various tools. Comments are welcome in the same manner.
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", | |
"Principal": { | |
"Service": "ec2.amazonaws.com" | |
}, | |
"Effect": "Allow", | |
"Sid": "" |
#!/bin/bash | |
set -eu | |
reg="registry.hub.docker.com" | |
repo="gliderlabs" | |
image="alpine" | |
name="${repo}/${image}" | |
tag="latest" | |
parallel=4 |