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=OpenVPN connection to %i | |
PartOf=openvpn.service | |
ReloadPropagatedFrom=openvpn.service | |
Before=systemd-user-sessions.service | |
After=network-online.target | |
Wants=network-online.target | |
Documentation=man:openvpn(8) | |
Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage | |
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO |
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/sh | |
# add universe and multiverse, for desktop packages and guest additions respectively | |
sudo sed '1 s/.*/& universe multiverse/' /etc/apt/sources.list | |
sudo apt update -y | |
sudo apt install guest-additions-dkms -y |
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
#Global options | |
filebeat.shutdown_timeout: 3s | |
##Logging | |
logging.level: error | |
logging.to_files: true | |
logging.files: | |
path: /var/log/filebeat | |
name: filebeat | |
keepfiles: 7 |
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
@name Smart Opener | |
@inputs | |
@outputs Door | |
@persist P:array Distance:array A:array Target:entity D Z | |
@trigger | |
runOnChat(1) | |
interval(300) | |
#Distance | |
D = 120 |
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
version: '3.4' | |
services: | |
stellar-core-postgres: | |
image: postgres:9-alpine | |
container_name: stellar-postgres | |
ports: | |
- 5432:5432 | |
environment: | |
- POSTGRES_DB=stellar-core |
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 | |
export DATA_DISK_DEVICE=/dev/nvme1n1 | |
export DATA_DISK_MOUNT=/data | |
sudo mkfs.ext4 $DATA_DISK_DEVICE | |
echo "$DATA_DISK_DEVICE $DATA_DISK_MOUNT ext4 defaults 0 0" | sudo tee -a /etc/fstab && sudo mount -a | |
sudo systemctl stop docker | |
sudo mv /var/lib/docker $DATA_DISK_MOUNT/docker | |
sudo ln -s $DATA_DISK_MOUNT/docker /var/lib/docker |
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
version: '3.4' | |
services: | |
stellar-core-postgres: | |
image: postgres:9-alpine | |
container_name: stellar-postgres | |
ports: | |
- 5432:5432 | |
environment: | |
- POSTGRES_DB=stellar-core |
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
\{(.+)\} |
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
# assumes you have postgres_data_directory, postgres_user, and postgres_bin_directory set | |
- name: Check for existing database | |
become: yes | |
become_user: postgres | |
stat: | |
path: "{{ postgres_data_directory }}/PG_VERSION" | |
register: pgdata_directory_version | |
- name: Initialize PostgreSQL DB | |
become: yes |
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
version: "3" | |
services: | |
grafana: | |
image: grafana/grafana:5.2.1 | |
ports: | |
- "3000:3000" | |
environment: | |
- HTTP_USER=admin | |
- HTTP_PASS=admin |