- Export all the required environment variables:
export $(grep -v '^#' /etc/etcd.env | xargs -d '\n')
- Start interacting with
etcdctl
etcdctl endpoint health status --cluster -w table && etcdctl endpoint status --cluster -w table
export $(grep -v '^#' /etc/etcd.env | xargs -d '\n')
etcdctl
etcdctl endpoint health status --cluster -w table && etcdctl endpoint status --cluster -w table
Host github.com | |
User git | |
Hostname github.com | |
AddKeysToAgent yes | |
IgnoreUnknown UseKeychain | |
UseKeychain yes | |
PreferredAuthentications publickey | |
IdentityFile /Users/USERNAME/.ssh/id_rsa |
#!/bin/bash | |
set -e | |
set -u | |
set -o pipefail | |
command -v benchstat >/dev/null 2>&1 || { echo >&2 "I need Benchstat!"; exit 1; } | |
command -v git >/dev/null 2>&1 || { echo >&2 "I need Git!"; exit 1; } | |
BRANCH_TARGET="master" |
from instagrapi import Client | |
from instagrapi.exceptions import ClientLoginRequired, ClientError | |
import os | |
# Instagram accounts credentials | |
acc1_username = os.environ.get('IM_FROM_USERNAME') | |
acc1_password = os.environ.get('IM_FROM_PASSWORD') | |
acc2_username = os.environ.get('IM_TO_USERNAME') | |
acc2_password = os.environ.get('IM_TO_PASSWORD') |
This is a minimal example showing how to read, edit, and write YAML using Go structs while preserving comments, using the goccy/go-yaml
library.
package main
import (
"fmt"
"os"