Make sure you have the op command line tool installed:
brew install 1password-cli
Create a .env file that includes your environment variables and the op commands to retrieve them:
export BIG_VARIABLE=$(op item get "" --fields --vault )
Make sure you have the op command line tool installed:
brew install 1password-cli
Create a .env file that includes your environment variables and the op commands to retrieve them:
export BIG_VARIABLE=$(op item get "" --fields --vault )
| #!/usr/bin/env python3 | |
| import os | |
| import requests | |
| api_data = { | |
| 'api_username': 'system', | |
| 'api_key': os.environ['DISCOURSE_API_KEY'] | |
| } |
| openapi: 3.0.0 | |
| info: | |
| title: Influx API Service | |
| version: 0.1.0 | |
| servers: | |
| - url: /v1 | |
| paths: | |
| /ping: | |
| servers: | |
| - url: / |
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "context" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" |
| version: '3' | |
| services: | |
| influxdb: | |
| # Full tag list: https://hub.docker.com/r/library/influxdb/tags/ | |
| image: influxdb:latest | |
| volumes: | |
| # Mount for influxdb data directory | |
| - ./influxdb/data:/var/lib/influxdb | |
| # Mount for influxdb configuration | |
| - ./influxdb/config/:/etc/influxdb/ |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |