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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.require_plugin "aws-sdk" | |
def get_box_download_url(bucket, key) | |
s3 = AWS::S3.new | |
bucket = s3.buckets[bucket] | |
box = bucket.objects[key] | |
url = box.url_for(:read, {:expires => (60*30), :secure => true}) | |
url.to_s() |
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
/(vagrant-hostmanager-start|vagrant-hostmanager-end)/{f=f?0:1}f && /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]/ { | |
if (NF>2) { | |
out="" | |
for (i=2;i<=NF;i++) { | |
out=(out $1 "\t" $(i) "\n") | |
} | |
$0=out | |
} | |
}1 |
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
#set ($paramName = $helper.getParamName($field, $project)) | |
#set ($isOptional = $field.typeQualifiedName.startsWith('com.google.common.base.Optional<')) | |
#if ($isOptional) | |
#set ($paramType = $field.typeQualifiedName.replaceAll(".*?<(.*)>$", "$1")) | |
#else | |
#set ($paramType = $field.typeQualifiedName) | |
#end | |
public ## | |
#if($field.modifierStatic) | |
static void ## |
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
[tool.poetry] | |
name = "extras_gist" | |
version = "0.1.0" | |
description = "" | |
authors = ["delphyne <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.6" | |
pytest = "*" | |
pytest = {version = "*", extras = "testing", optional = true} |
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
[tool.poetry] | |
name = "multi_source" | |
version = "0.1.0" | |
description = "" | |
authors = ["Delphyne <[email protected]>"] | |
packages = [ | |
{include="example", from="src/main/python"}, | |
{include="example/generated", from="src/generated/python"} | |
] |
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
package util | |
/** | |
* adapted from https://gist.github.com/dainkaplan/4651352 | |
*/ | |
class Ansi(private vararg val codes: String) { | |
fun and(other: Ansi): Ansi { | |
return Ansi(*codes, *other.codes) | |
} |
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
/** | |
* Auto generate diagrams for anything that wasn't already created manually. | |
* Be sure to create your manually adjusted diagrams before this script is invoked, or you'll have duplicates. | |
*/ | |
!script groovy { | |
import com.structurizr.view.AutomaticLayout; \ | |
def sysctxviews = workspace.views.systemContextViews.collect { \ | |
it.softwareSystem; \ | |
} as Set; \ | |
def containerviews = workspace.views.containerViews.collect { \ |