Skip to content

Instantly share code, notes, and snippets.

View marylly's full-sized avatar
💛

Marylly marylly

💛
View GitHub Profile
// CPPSandbox.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <activeds.h>
#include <AdsHlp.h>
int main()
{
HRESULT hr;
@marylly
marylly / setup.sh
Created January 8, 2022 15:51
MacOS Initial Setup
Instalando HomeBrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Instalando o Git
brew install git
Instalando o Pip
brew install pip3
Instalando o pyenv
brew install pyenv
@marylly
marylly / vault.service
Created June 24, 2018 20:24
Vault OpenRC service
#!/sbin/openrc-run
depend() {
need localmount
after net
}
start() {
ebegin "Starting Vault"
start-stop-daemon --background --start --exec /go/bin/vault -- server -config /go/src/github.com/hashicorp/vault/vault.json -address=http://127.0.0.1:8200 -log-level=DEBUG -tls-skip-verify
@marylly
marylly / consul.service
Created June 24, 2018 20:24
Consul OpenRC service
#!/sbin/openrc-run
depend() {
need localmount
after net
}
start() {
ebegin "Starting Consul"
start-stop-daemon --background --start --exec /go/bin/consul -- agent -server -config-file=/go/src/github.com/hashicorp/consul/consul.json
@marylly
marylly / vault.json
Last active June 24, 2018 20:23
Vault config json file
listener "tcp" {
address = "127.0.0.1:8200"
tls_disable = 1
}
backend "consul" {
address = "127.0.0.1:8500"
advertise_addr = "http://127.0.0.1:8200"
path = "tmp/vault/"
scheme = "http"
@marylly
marylly / consul.json
Last active June 24, 2018 20:23
Consul config json file
{
"bootstrap": true,
"server": true,
"datacenter": "nyc2",
"data_dir": "/var/consul",
"encrypt": "CONSUL_ENCRYPT",
"log_level": "DEBUG"
}
@marylly
marylly / supervisord-consul.conf
Last active June 24, 2018 20:25
Supervisor conf for consul service
[supervisord]
nodaemon=true
[program:consul]
command=$GOPATH/bin/consul agent -server -config-file=$GOPATH/src/github.com/hashicorp/consul/consul.json
autostart=true
[program:vault]
command=$GOPATH/bin/vault server -config $GOPATH/src/github.com/hashicorp/vault/vault.json
autostart=true
@marylly
marylly / Dockerfile-consul-vault
Last active June 25, 2018 15:00
Dockerfile Consul and Vault Stack
FROM golang:1.10.0-alpine3.7
RUN apk update && apk add --no-cache bash curl g++ gcc git make openrc supervisor unzip zip
RUN mkdir -p /run/openrc && \
touch /run/openrc/softlevel
RUN mkdir -p $GOPATH/src/github.com/hashicorp && \
cd $! && \
git clone https://github.com/hashicorp/consul.git $GOPATH/src/github.com/hashicorp/consul && \
@marylly
marylly / Dockerfile-android-ionic
Last active May 17, 2018 01:50
Build Android with Ionic Framework
FROM node:10-alpine
RUN apk update && apk add --no-cache wget nginx musl git bash unzip libstdc++ make g++ gcc libgcc python2 curl ca-certificates tar gzip
RUN npm i ionic cordova -g
ENV ANDROID_HOME /opt/android-sdk-linux
ENV SDK_TOOLS_VERSION 25.2.5
ENV API_LEVELS android-23
ENV BUILD_TOOLS_VERSIONS build-tools_r27.0.0
@marylly
marylly / Dockerfile-readthedocs
Last active June 5, 2018 12:46
Dockerfile for ReadTheDocs Setup
FROM alpine:3.7
LABEL maintainer = "Marylly Araújo Silva <mymarylly@gmail.com>"
RUN apk update && apk add --update --no-cache --virtual build-dep \
g++ libstdc++ \
gcc libgcc \
git \
jpeg-dev \
libc-dev \