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
echo 'B=inside .env' > .env && \ | |
echo -e "require 'dotenv'; Dotenv.load; task :t do\n puts ENV['B']\nend" > Rakefile && \ | |
export B=exported_b && \ | |
rake t && \ | |
echo -e "\n===\n" && \ | |
unset B && \ | |
rake t |
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
require 'dotenv' | |
Dotenv.load | |
task :t do | |
puts ENV['B'] | |
end |
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
Generated postgrex app | |
==> eventstore | |
Compiling 49 files (.ex) | |
== Compilation error in file lib/event_store/storage/reader.ex == | |
** (CompileError) lib/event_store/storage/reader.ex:73: Postgrex.Timestamp.__struct__/0 is undefined, cannot expand struct Postgrex.Timestamp | |
lib/event_store/storage/reader.ex:73: (module) | |
could not compile dependency :eventstore, "mix compile" failed. You can recompile this dependency with "mix deps.compile eventstore", update it with "mix deps.update eventstore" or clean it with "mix deps.clean eventstore" |
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
#!/bin/bash | |
if [[ -z "$1" ]]; then | |
gcloud config configurations list; | |
else | |
case "$1" in | |
# These clauses implement aliases for my most commonly used configurations. | |
# Change them to support your needs or remove them. | |
prod) | |
gcloud config configurations activate default |
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
;; TRAMP gcloud ssh | |
(add-to-list 'tramp-methods | |
'("gssh" | |
(tramp-login-program "gssh") | |
(tramp-login-args (("%h"))) | |
(tramp-async-args (("-q"))) | |
(tramp-remote-shell "/bin/sh") | |
(tramp-remote-shell-args ("-c")) | |
(tramp-gw-args (("-o" "GlobalKnownHostsFile=/dev/null") | |
("-o" "UserKnownHostsFile=/dev/null") |
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
checkNewVersion = false | |
IdleTimeout = "180s" | |
MaxIdleConnsPerHost = 500 | |
logLevel = "DEBUG" | |
# defaultEntryPoints = ["http"] | |
[retry] | |
attempts = 3 | |
[web] |
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
job "redis" { | |
datacenters = ["europe-west1-b", "europe-west1-c", "europe-west1-d"] | |
# datacenters = ["dc1"] | |
type = "service" | |
update { | |
max_parallel = 1 | |
min_healthy_time = "10s" | |
healthy_deadline = "3m" | |
canary = 0 |