brew tap Selleo/cli
brew install selleo
Generate terraform (we assume one env per account id):
resource "aws_amplify_app" "cloud" { | |
name = "xxxxx" | |
description = "Documentation." | |
platform = "WEB" | |
enable_basic_auth = true | |
basic_auth_credentials = base64encode("xxxx") | |
tags = { | |
namespace = "devops" |
type SubscriptionConfirmation struct { | |
Type string `json:"Type"` | |
MessageId string `json:"MessageId"` | |
Token string `json:"Token"` | |
TopicArn string `json:"TopicArn"` | |
Message string `json:"Message"` | |
SubscribeURL string `json:"SubscribeURL"` | |
Timestamp string `json:"Timestamp"` | |
SignatureVersion string `json:"SignatureVersion"` | |
Signature string `json:"Signature"` |
<div | |
class="absolute inset-0 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]" | |
></div> |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:DeleteObjectTagging", | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:GetObjectTagging", |
docker run --rm --entrypoint htpasswd httpd:2 -Bbn testuser testpassword | Set-Content -Encoding ASCII auth/htpasswd |
{ | |
"files.associations": { | |
"*.nomad.hcl": "terraform", | |
"*.nginx": "nginx", | |
"*.templ": "html", | |
"*.shader" : "hlsl" | |
}, | |
"workbench.tree.indent": 20, | |
"telemetry.telemetryLevel": "off", | |
"vim.easymotion": true, |
select | |
d.oid as id, | |
d.datname AS name, | |
d.datdba AS owner_id, | |
auth.rolname AS owner_name, | |
d.datistemplate AS is_template, | |
d.datconnlimit AS connection_limit, | |
d.dattablespace AS tablespace_id, | |
ts.spcname AS tablespace_name, | |
pg_size_pretty( pg_database_size(d.datname)) as size, |
{{- range services -}} | |
{{- if .Name | contains "sidecar" | not -}} | |
{{- $groupedServices := (service .Name | byMeta "caddy_enable") -}} | |
{{- $enabledServices := (index $groupedServices "true" ) -}} | |
{{- range $enabledServices -}} | |
{{- $vhost := index .ServiceMeta "caddy_vhost" -}} | |
{{- scratch.MapSetX "vhosts" $vhost . -}} | |
{{- end -}} | |
{{- end -}} | |
{{- end -}} |
brew tap Selleo/cli
brew install selleo
Generate terraform (we assume one env per account id):
for k, v := range secrets { | |
envs = append(envs, fmt.Sprint(k, "=", v)) | |
startFrom := len(v) | |
if len(v) > 10 { | |
startFrom -= 3 | |
} | |
hashedV := fmt.Sprint(strings.Repeat("*", startFrom), v[startFrom:]) | |
fmt.Fprintf(w, "exporting %s%s=%s%s%s\n", ctc.ForegroundGreen, k, ctc.ForegroundBlue, hashedV, ctc.Reset) | |
} |