This file contains hidden or 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=High-performance, schema-free document-oriented database | |
Documentation=man:mongod(1) | |
After=network.target | |
[Service] | |
Type=forking | |
User=mongodb | |
Group=mongodb |
This file contains hidden or 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 | |
function run_as_root { | |
sudo -u root $@ | |
} | |
function apt_install { | |
run_as_root apt-get install -y --no-install-recommends $@ | |
} |
This file contains hidden or 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
# Handy Linux Commands I never want to forget ;) | |
# add your user to the suduers file | |
username ALL=(ALL) NOPASSWD:ALL | |
# Set the root user password for mysql, this allows logging in with no password | |
mysqladmin -u root -proot password '' | |
# Create the letsencrypt (certbot) test environment | |
cd letsencrypt |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
config.vm.define "n1" do |n1| |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
config.vm.define "n1" do |n1| |
This file contains hidden or 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 ( | |
"encoding/json" | |
"fmt" | |
"html/template" | |
"io/ioutil" | |
"net/http" | |
"os" | |
"sort" |
This file contains hidden or 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.1' | |
networks: | |
snet: | |
driver: overlay | |
volumes: | |
certs: | |
html: | |
vhosts: |
This file contains hidden or 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
services: | |
uwsgimti: | |
deploy: | |
replicas: 1 | |
placement: | |
constraints: | |
- node.hostname == blackberry | |
environment: | |
VIRTUAL_HOST: "morethaniron.com,www.morethaniron.com" |
This file contains hidden or 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
services: | |
ddagent: | |
deploy: | |
mode: global | |
image: datadog/docker-dd-agent:latest-alpine | |
environment: | |
DD_API_KEY_FILE: /run/secrets/dd_api_key | |
secrets: | |
- source: dd_api_key | |
target: dd_api_key |
This file contains hidden or 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 | |
# scripts cant be started any other way. IE. not -x or -e | |
DOCKER_FINGERPRINT="9DC858229FC7DD38854AE2D88D81803C0EBFCD88" | |
DOCKER_APT_REPOSITORY="https://download.docker.com/linux/ubuntu" | |
APT_DEPS="awscli mysql-client" | |
# This is templated from vault. | |
cat > /home/jammin/.ssh/id_ecdsa <<- EOF | |
-----BEGIN EC PRIVATE KEY----- |
OlderNewer