export VAULT_ADDR="http://127.0.0.1:8200"
vault status
vault init
vault init -key-shares=10 -key-threshold=2 > vault-storage.txt
vault unseal
vault auth <root-key>
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
def foo(x) | |
puts x*2 | |
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
module.exports = function (ctx, done) { | |
var MongoClient = require('mongodb').MongoClient; | |
var assert = require('assert'); | |
var ObjectId = require('mongodb').ObjectID; | |
var url = ctx.data.MONGO_URL; | |
var insertValue = function(db) { | |
db.collection('cups').insertOne({ | |
'date': new Date(), | |
'coffee': 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
#!/bin/bash | |
FIND=`docker ps -a | grep Exited | awk '{print $1}'` | |
for i in $FIND; | |
do | |
docker rm $i | |
done |
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
knife solo prepare user@host <- crea el nodes/host.json | |
knife solo cook user@host <- de acuerdo al archivo nodes/host.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
module.exports = function (ctx, done) { | |
var MongoClient = require('mongodb').MongoClient; | |
var assert = require('assert'); | |
var ObjectId = require('mongodb').ObjectID; | |
var url = ctx.data.MONGO_URL; | |
var insertValue = function(db) { | |
db.collection('cups').insertOne({ | |
'date': new Date(), | |
'coffee': 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
= VPC | |
1. Crear VPC, asignar rango de IP (10.0.0.0/16) | |
2. Crear al menos | |
- Una subnet pública (10.0.1.0/24) | |
- Una subnet privada (10.0.2.0/24) | |
3. Crear un Internet Gateway y atacharlo a la VPC | |
4. Crear un NAT Gateway (debe estar en la VPC pública) | |
5. Routing table | |
- Asignar la subnet pública al Internet GW con destination 0.0.0.0/0 | |
- Asingar la subnet privada al NAT GW con destination 0.0.0.0/0 |
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 main | |
import "fmt" | |
func main() { | |
fmt.Println("hello world") | |
} |
I hereby claim:
- I am boris on github.
- I am borisquiroz (https://keybase.io/borisquiroz) on keybase.
- I have a public key whose fingerprint is F1B8 1974 430A B3EC 737F 0AC1 CE52 8506 9B8D 33E4
To claim this, I am signing this object:
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 | |
VER=0.21.0 | |
ARCH="aarch64" | |
echo "Installing Bitcoind $VER" | |
setup(){ | |
sudo mkdir /data | |
UUID=$(sudo blkid -s UUID -o value /dev/xvdf1) | |
echo "UUID=$UUID /data ext4 defaults 0 0"| sudo tee -a /etc/fstab | |
sudo mount -a | |
sudo mkdir -p /data/{bitcoin,conf} |