This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
PROTO='udp' | |
PORT='123' | |
LOG='NTP' | |
CHAIN=ntplog | |
SET=ntplog | |
MAXELEM=33554432 | |
HASHSIZE=65535 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version" : "2012-10-17", | |
"Statement" : [ | |
{ | |
"Effect" : "Allow", | |
"Principal" : "*", | |
"Action" : "execute-api:Invoke", | |
"Resource" : "execute-api:/*/*/*" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi" : "3.0.1", | |
"info" : { | |
"title" : "this-api-gateway", | |
"version" : "1.0" | |
}, | |
"paths" : { | |
"/test-auth" : { | |
"x-amazon-apigateway-any-method" : { | |
"responses" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_iam_policy_document" "lambda_authorizer_assume_role" { | |
statement { | |
actions = ["sts:AssumeRole"] | |
effect = "Allow" | |
principals { | |
type = "Service" | |
identifiers = [ | |
"apigateway.amazonaws.com", | |
"lambda.amazonaws.com", | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import datetime | |
def all_dates(beginyear = 2000, endyear = 2100): | |
for year in range(beginyear, endyear): | |
for month in range(1, 13): | |
for day in range(1, 32): | |
try: | |
yield datetime.date(year, month, day) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Origin: http://wiki.geany.org/howtos/check_python_code | |
# Modified by: Paul Gear <github@libertysys.com.au> | |
# License: CC Attribution-Share Alike 3.0 Unported <http://creativecommons.org/licenses/by-sa/3.0/> | |
echo "====== pep8 ======" | |
# E128 = continuation line under-indented for visual indent | |
# E501 = line too long | |
pep8 \ |