30.11.2020: Updated with the new patchseries and instructions for Windows
02.12.2020: Added tweaks
08.12.2020: Updated with patchseries v4
31.01.2020: Updated with patchseries v6
provider "aws" { | |
profile = "default" | |
region = "us-west-2" | |
} | |
resource "aws_key_pair" "example" { | |
key_name = "examplekey" | |
public_key = file("~/.ssh/terraform.pub") | |
} |
# Based on the following: | |
# https://www.datainsightonline.com/post/how-to-generate-fake-dataset-with-python-faker-library | |
# https://deparkes.co.uk/2020/12/28/python-fake-data-with-faker/ | |
from faker.providers import BaseProvider | |
from faker import Faker | |
import pandas as pd | |
from loguru import logger | |
fake = Faker("en_GB") |
[flake8] | |
max-line-length = 88 | |
max-complexity = 12 | |
select = C,E,F,W,B,B950 | |
ignore = E203, E501, W503 |
package com.blogspot.lifeinide.postgres.locks; | |
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; | |
import org.hibernate.exception.LockAcquisitionException; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.core.Ordered; | |
import org.springframework.stereotype.Component; |
import ec2 = require('@aws-cdk/aws-ec2'); | |
import ecs = require('@aws-cdk/aws-ecs'); | |
import ecs_patterns = require('@aws-cdk/aws-ecs-patterns'); | |
import cdk = require('@aws-cdk/core'); | |
import route53 = require('@aws-cdk/aws-route53'); | |
import acm = require('@aws-cdk/aws-certificatemanager'); | |
import targets = require('@aws-cdk/aws-route53-targets/lib'); | |
import path = require('path'); | |
import { config } from 'dotenv'; | |
import { ApplicationProtocol, SslPolicy } from '@aws-cdk/aws-elasticloadbalancingv2'; |
import sys | |
from awsglue.transforms import * | |
from awsglue.utils import getResolvedOptions | |
from pyspark.context import SparkContext | |
from awsglue.context import GlueContext | |
from awsglue.job import Job | |
from pyspark.sql.functions import * | |
from awsglue.dynamicframe import DynamicFrame | |
function retry_backoff {local m=${ATTEMPTS:-5};local t=${TIMEOUT:-1};local a=0;local e=1;while (($a < $m));do "$@";e=$?;if (($e == 0)); then break;fi;echo "Failure! Retrying in $t.." 1>&2;sleep $t;((a++));t=$((t*2));done;if (($e != 0));then echo "Max attempts reached!" 1>&2;fi;return $e; }
retry_backoff $YOUR_COMMAND # default of 5 retries, starting with 1 second timeout