sequenceDiagram
autonumber
participant Host as Host frame (app.slack.com)
participant Proxy as Proxy frame (file-id.slack-mcps.com)
participant Inner as Inner iframe (LLM-authored HTML)
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
| # USER Data on worker nodes would include a line like so | |
| # sed -i s,MAX_PODS,${lookup(var.max_pods, "t2.small")},g /etc/systemd/system/kubelet.service | |
| variable "max_pods" { | |
| type = "map" | |
| description = "max pod mapping from https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/amazon-eks-nodegroup.yaml" | |
| default = { | |
| "c4.large" = "29" | |
| "c4.xlarge" = "58" |
Using gometalinter with Danger
Run your gometalinter command in CI with the --json command save output to a file e.g. lint.json
go list -f '{{.Dir}}' ./... | grep -v 'vendor' | xargs gometalinter --vendored-linters --json > lint.json
Add the following to Dangerfile
# Show lint errors
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
| { | |
| "Ansi 7 Color" : { | |
| "Green Component" : 0.7333333492279053, | |
| "Blue Component" : 0.7333333492279053, | |
| "Red Component" : 0.7333333492279053 | |
| }, | |
| "Tags" : [ | |
| ], | |
| "Ansi 12 Color" : { |
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
| go run cmd/sarama-cluster-cli/main.go -brokers="192.168.100.67:9091" -group="bsm" -offset="oldest" -topics="test.4" -verbose=true | |
| 2016/02/09 09:23:36 Initializing new client | |
| 2016/02/09 09:23:36 client/metadata fetching metadata for all topics from broker 192.168.100.67:9091 | |
| 2016/02/09 09:23:36 Connected to broker at 192.168.100.67:9091 (unregistered) | |
| 2016/02/09 09:23:36 client/brokers registered new broker #9091 at 192.168.100.67:9091 | |
| 2016/02/09 09:23:36 client/brokers registered new broker #9095 at 192.168.100.67:9095 | |
| 2016/02/09 09:23:36 client/brokers registered new broker #9094 at 192.168.100.67:9094 | |
| 2016/02/09 09:23:36 client/brokers registered new broker #9093 at 192.168.100.67:9093 | |
| 2016/02/09 09:23:36 client/brokers registered new broker #9092 at 192.168.100.67:9092 | |
| 2016/02/09 09:23:36 Successfully initialized new client |
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
| 2015/07/07 10:56:28 [INFO] Terraform version: 0.6.0 e40127fda6766dbea2749c17ba61f97b78c6c468 | |
| 2015/07/07 10:56:28 Detected home directory from env var: /Users/callen | |
| 2015/07/07 10:56:28 [DEBUG] Discovered plugin: atlas = /Users/callen/bin/terraform-provider-atlas | |
| 2015/07/07 10:56:28 [DEBUG] Discovered plugin: aws = /Users/callen/bin/terraform-provider-aws | |
| 2015/07/07 10:56:28 [DEBUG] Discovered plugin: azure = /Users/callen/bin/terraform-provider-azure | |
| 2015/07/07 10:56:28 [DEBUG] Discovered plugin: cloudflare = /Users/callen/bin/terraform-provider-cloudflare | |
| 2015/07/07 10:56:28 [DEBUG] Discovered plugin: cloudstack = /Users/callen/bin/terraform-provider-cloudstack | |
| 2015/07/07 10:56:28 [DEBUG] Discovered plugin: consul = /Users/callen/bin/terraform-provider-consul | |
| 2015/07/07 10:56:28 [DEBUG] Discovered plugin: digitalocean = /Users/callen/bin/terraform-provider-digitalocean | |
| 2015/07/07 10:56:28 [DEBUG] Discovered plugin: dme = /Users/callen/bin/terraform-provider-dme |
I hereby claim:
- I am curtisallen on github.
- I am curtisallen (https://keybase.io/curtisallen) on keybase.
- I have a public key whose fingerprint is 3C97 EE8F C4D1 FCEB CDD3 7FB7 46FF C248 F945 11C9
To claim this, I am signing this object:
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
| \,,,/ | |
| (o o) | |
| -----oOOo-(_)-oOOo----- | |
| gremlin> import com.pearson.atwood.dsl.* | |
| gremlin> import com.pearson.atwood.dsl.util.* | |
| gremlin> c = ConfigurationProvider.create(ConfigurationProvider.Env.DEV, ConfigurationProvider.WorkLoad.READ_HEAVY) | |
| ==>org.apache.commons.configuration.BaseConfiguration@41813449 | |
| gremlin> g = TitanFactory.open(c) | |
| ==>titangraph[inmemory:[192.168.1.112]] |
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
| class DefaultUtilsSpecTest extends Specification { | |
| @Unroll | |
| def "test defaults (#a #b #c) = #d"(String a, String b, String c, String d){ | |
| expect: | |
| DefaultUtils.defaultIfNull(a, b, c) == d | |
| where: | |
| a | b | c | d | |
| "val1" | null | "default" | "val1" | |
| null | "val2"| "default" | "val2" | |
| null | null | "default" | "default" |
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
| import java.util.Arrays; | |
| import java.util.Objects; | |
| import java.util.Optional; | |
| import java.util.stream.Stream; | |
| /** | |
| * Utilities for working with default values | |
| */ | |
| public class DefaultUtils { | |
| /** |
NewerOlder