Create a new user in the console, assign it no permissions, but make sure to download the credentials.
Go to the user and copy the user ARN:
arn:aws:iam::<account-id>:user/of-connector-test
git ls-remote
command.default
branch locally.git for-each-ref
command.git merge-base
command.git commit-tree
command.git cherry
command.#!/bin/bash | |
# source: https://gist.github.com/LucasRoesler/c7b245bcd9f33bc989e279ba9cdb9828 | |
# usage: | |
# create-repo [name] [owner] | |
# create-repo [name] # owner defaults to contiamo | |
# create-repo # name defaults to the current directory name | |
# name is the first arg, fallback to the the current directory name | |
NAME=${1:-$(basename $(pwd))} | |
OWNER=${2:-contiamo} |
class JSONMiddleware(object): | |
""" | |
Process application/json requests data from GET and POST requests. | |
""" | |
def process_request(self, request): | |
if 'application/json' in request.META['CONTENT_TYPE']: | |
# load the json data | |
data = json.loads(request.body) | |
# for consistency sake, we want to return | |
# a Django QueryDict and not a plain Dict. |
import { S3Client } from "@aws-sdk/client-s3"; | |
import { streamingWrite, Upload } from "./writer"; | |
const sleep = (ms: number) => { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
}; | |
// skip because it requires a real s3 bucket, this is still useful for testing locally. | |
describe.skip("streamingWriter", () => { |
# put in app/management/commands | |
from datetime import datetime | |
import importlib | |
import logging | |
from optparse import make_option | |
from django.conf import settings | |
from django.core.management.base import BaseCommand | |
import django_rq |
swagger: '2.0' | |
info: | |
title: Teem User Provisioning API | |
version: "1.0.0" | |
contact: | |
url: https://teem.com/developers/ | |
email: support@teem.com | |
# the domain of the service | |
host: app.teem.com | |
# will be prefixed to all paths |
kubectl create namespace openfaas-fn | |
kubectl create namespace openfaas | |
kubectl -n openfaas create secret generic basic-auth \ | |
--from-literal=basic-auth-user=admin \ | |
--from-literal=basic-auth-password=localdev | |
helm upgrade lucas-of openfaas/openfaas \ | |
--install \ | |
--namespace openfaas \ | |
--set basic_auth=true \ | |
--set functionNamespace=openfaas-fn \ |
To clear 307 HSTS redirects in Google Chrome (if you experimenting with SSL -- you probably wouldn't want to do this for a site that you do not opperate, since it is there to protect you), go to the following URL and delete the site.
chrome://net-internals/#hsts
#!/bin/bash | |
DEVENV=${1:-devopenfaas} | |
kind create cluster --name "$DEVENV" | |
export KUBECONFIG="$(kind get kubeconfig-path --name="$DEVENV")" | |
kubectl rollout status deploy coredns --watch -n kube-system | |
# INSTALLING HELM |