I hereby claim:
- I am sihil on github.
- I am sihil (https://keybase.io/sihil) on keybase.
- I have a public key whose fingerprint is 40C6 DFE9 FE2A 94F8 E3BF 5F5F 0C15 D6A7 8215 2459
To claim this, I am signing this object:
| #!/bin/bash | |
| set -e | |
| FILE=${1} | |
| if [ ! -f "${FILE}" ]; then | |
| echo "File ${FILE} not found!" | |
| exit 1 | |
| fi |
| import $ivy.`software.amazon.awssdk:route53:2.15.42` | |
| import software.amazon.awssdk.services.route53.{Route53Client, Route53ClientBuilder} | |
| import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider | |
| import software.amazon.awssdk.regions.Region | |
| import software.amazon.awssdk.services.route53.model.{Change, ChangeAction, ChangeBatch, ChangeResourceRecordSetsRequest, DeleteHostedZoneRequest, HostedZone, ListHostedZonesRequest, ListResourceRecordSetsRequest} | |
| import scala.collection.JavaConverters._ | |
| @main | |
| def main(zoneId: String, profile: String) = { |
| #!/bin/bash -e | |
| if [ -z "$1" -o -z "$2" ]; then | |
| cat <<MSG | |
| ${BASH_SOURCE[0]} is a script to clone recently used github repos. Potentially | |
| useful when you have a new laptop. | |
| Usage: ${BASH_SOURCE[0]} user token [clone_dir] [months] | |
| user: your github username | |
| token: a github token with enough permission to see the repos you want |
| package utils.attempt | |
| import cats.data.EitherT | |
| import scala.concurrent.{ExecutionContext, Future} | |
| import scala.util.control.NonFatal | |
| /** | |
| * Represents a value that will need to be calculated using an asynchronous | |
| * computation that may fail. |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| set -e | |
| # Script to update a zone - designed to be triggerd by nsnotifyd | |
| PATH=/bin:/usr/bin:/usr/local/bin:$PATH | |
| # Constants | |
| DYN_TRANSFER_HOST=xfrout1.dynect.net | |
| # Get command line parameters | |
| ZONE=$1 |
| API: | |
| Type: AWS::ApiGateway::RestApi | |
| Properties: | |
| Name: | |
| Fn::Join: | |
| - " " | |
| - - Restorer Plambda | |
| - Ref: Stage | |
| Description: Experimental Restorer Play app in Lambda |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride | |
| # Icon must end with two \r | |
| Icon | |
| # Thumbnails | |
| ._* |
| { | |
| "data" : { | |
| "images" : [ { | |
| "arn" : "arn:aws:ec2:eu-west-1::image/ami-XXXXXXXX", | |
| "name" : "ubuntu-vivid-java8_408_2016/02/17_12-18-34", | |
| "imageId" : "ami-XXXXXXXX", | |
| "region" : "eu-west-1", | |
| "description" : "AMI for ubuntu-vivid-java8 built by TeamCity: tools-machine-images#408", | |
| "tags" : { | |
| "Name" : "ubuntu-vivid-java8_408_2016/02/17_12-18-34", |
| #!/bin/bash | |
| # Upload a certificate and chain to AWS | |
| set -e | |
| DOMAIN=$1 | |
| if [ -n "$2" ]; then | |
| PROFILE_PARAM="--profile $2" | |
| fi | |
| if [ -z "${DOMAIN}" ]; then |