This file contains hidden or 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
| defmodule SimpleS3Upload do | |
| @moduledoc """ | |
| Dependency-free S3 Form Upload using HTTP POST sigv4 | |
| https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html | |
| """ | |
| @doc """ | |
| Signs a form upload. | |
| The configuration is a map which must contain the following keys: | |
| * `:region` - The AWS region, such as "us-east-1" |
This file contains hidden or 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
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
This file contains hidden or 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
| #include "widget.h" | |
| #include "ui_widget.h" | |
| #include "CaptureItemDelegate.h" | |
| #include <QDebug> | |
| #include <QStandardItemModel> | |
| Widget::Widget(QWidget *parent) : | |
| QWidget(parent), | |
| ui(new Ui::Widget) |
This file contains hidden or 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
| def jobName = "copy_folder" | |
| def job = Jenkins.instance.getItem(jobName) | |
| job.getBuilds().each { it.delete() } | |
| job.nextBuildNumber = 1 | |
| job.save() |
This file contains hidden or 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/zsh | |
| # | |
| # Open new iTerm window from the command line using v3 syntax for applescript as needed in iTerm2 Version 3+ | |
| # This script blocks until the cmd is executed in the new iTerm2 window. It then leaves the window open. | |
| # TODO Add option to close iTerm2 after cmd execs | |
| # See also https://www.iterm2.com/documentation-scripting.html | |
| # | |
| # Usage: | |
| # iterm Opens the current directory in a new iTerm window | |
| # iterm [PATH] Open PATH in a new iTerm window |
This file contains hidden or 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 bash | |
| #Look in Mac Keychain for AWS account key and delete if found as credentials are time limited | |
| if security find-internet-password -a AWS; then | |
| security delete-internet-password -a AWS | |
| fi |
This file contains hidden or 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
| String template = new File("${project.basedir}/src/main/docker/DockerfileTemplate".toString()).getText() | |
| def dockerFileText = new groovy.text.SimpleTemplateEngine().createTemplate(template) | |
| .make([fileName: project.build.finalName]) | |
| println "writing dir " + "${project.basedir}/target/dockerfile" | |
| new File("${project.basedir}/target/dockerfile/".toString()).mkdirs() | |
| println "writing file" | |
| File dockerFile = new File("${project.basedir}/target/dockerfile/Dockerfile".toString()) |
This file contains hidden or 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
| repeat | |
| set account to "AWS" | |
| try | |
| do shell script "security find-internet-password -a " & account | |
| do shell script "security delete-internet-password -a " & account | |
| log "Password deleted" | |
| on error errStr number errorNumber | |
| log "Password does not exist" | |
| end try | |
| delay 600 |
This file contains hidden or 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
| #zuul proxy server | |
| --- | |
| spring: | |
| profiles: prod | |
| server: | |
| port: 8080 | |
| zuul: | |
| routes: | |
| dashboard: |
NewerOlder