export KERL_CONFIGURE_OPTIONS="--disable-hipe --with-ssl=$(brew --prefix openssl@1.1)"
asdf install erlang 22.3.4.26
View validator.hs
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
{-# INLINABLE mkValidator #-} | |
-- This should validate if either beneficiary1 has signed the transaction and the current slot is before or at the deadline | |
-- or if beneficiary2 has signed the transaction and the deadline has passed. | |
mkValidator :: VestingDatum -> () -> ScriptContext -> Bool | |
mkValidator datum _ sc = traceIfFalse "cannot grab" (beneficiary1Grab || beneficiary2Grab) | |
where | |
info :: TxInfo | |
info = scriptContextTxInfo sc | |
beneficiary1Grab :: Bool |
View file.sh
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
cardano-cli address key-gen --verification-key-file 02.vkey --signing-key-file 02.skey | |
cardano-cli address build \ | |
--payment-verification-key-file 02.vkey \ | |
--out-file 02.addr --testnet-magic 2 | |
# Optional for debugging | |
## generates key files for staking address | |
cardano-cli stake-address key-gen \ | |
--verification-key-file 01-stake.vkey \ | |
--signing-key-file 01-stake.skey |
View m1.md
View 01.Dockerfile
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
FROM alpine:latest | |
# 01- ENV set directly in Dockerfile. | |
# Available during BUILDTIME and RUNTIME. | |
ENV LOCAL_ENV="hi I am LOCAL_ENV" | |
RUN echo $LOCAL_ENV | |
# 02 - ARG sent via command (docker or docker-compose) | |
# Available during BUILDTIME only. | |
ARG BUILDTIME_ENV |
View migration.exs
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
defmodule GuitarStore.Repo.Migrations.AddIsCustomShopToGuitars do | |
use Ecto.Migration | |
def change do | |
alter table("guitars") do | |
add :is_custom_shop, :boolean, default: false | |
end | |
create index("guitars", ["is_custom_shop"]) | |
end |
View agent.config.json
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
{ | |
"agent": { | |
"metrics_collection_interval": 60, | |
"run_as_user": "root" | |
}, | |
"metrics": { | |
"append_dimensions": { | |
"ImageId": "${aws:ImageId}", | |
"InstanceId": "${aws:InstanceId}", | |
"InstanceType": "${aws:InstanceType}" |
View nome-do-service.service
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
[Unit] | |
Description=O Nome do Service | |
[Service] | |
Type=notify | |
ExecStart=/bin/pra/iniciar/o/service | |
WatchdogSec=30s | |
Restart=always | |
RestartSec=5 |
View user-data-for-nginx.sh
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 -xe | |
yum update -y | |
amazon-linux-extras install nginx1 -y | |
cd /usr/share/nginx/html | |
echo "WebServer on instance-id " > index.html | |
curl http://169.254.169.254/latest/meta-data/instance-id >> index.html | |
systemctl start nginx |
View dope-flan.md
- 3 eggs
- 1 yolk
- 2 cans of sweetened condensed milk
- One of these
☝️ empty cans full of whole milk - A pinch of vanilla extract
View ec2-nginx.yml
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
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Creates an EC2 instance with Nginx installed and running.' | |
Parameters: | |
VPC: | |
Description: VPC for the SecurityGroup | |
Type: AWS::EC2::VPC::Id |
NewerOlder