I hereby claim:
- I am dky on github.
- I am dky (https://keybase.io/dky) on keybase.
- I have a public key whose fingerprint is B263 DF44 5355 E279 8E70 E4CC 10A4 6019 A1E5 C18C
To claim this, I am signing this object:
version: '3.7' | |
services: | |
consul-server: | |
image: consul:1.10.1 | |
network_mode: host | |
container_name: consul | |
restart: always | |
command: 'agent -bind=192.168.4.2 -server -client=0.0.0.0 -bootstrap-expect=1 -node=nyc3-1 -ui -datacenter=nyc3' |
client { | |
enabled = false | |
servers = ["127.0.0.1"] | |
} | |
server { | |
enabled = true | |
bootstrap_expect = 1 | |
} |
version: '3.7' | |
services: | |
nomad: | |
container_name: nomad | |
restart: always | |
image: dkyio/nomad:1.1.3 | |
command: agent | |
privileged: true | |
network_mode: host |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
#!/bin/bash | |
# Install Splunk 6.2 on CentOS 7 as a non-root user service that runs on boot with | |
# systemd. This script also opens the firewall to allow syslog on UDP port 514. Since | |
# we're running Splunk as non-root, this port is then forwarded to 5514. Configuring a | |
# syslog input in slunk on UDP 514 will gather this data. Must be run as root | |
# Create Account | |
useradd splunk | |
groupadd splunk |
brew install vim --with-lua |
#!/bin/bash | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# The script checks if a docker host if all container are running. | |
# OK - running | |
# UNKNOWN - Container has non-zero exit code | |
CONTAINERS=`docker ps | awk '{if (NR!=1) {print}}' | perl -ne '@cols = split /\s{2,}/, $_; printf "%30s %20s %20s\n", $cols[5]'` |
#!/bin/bash | |
# Author: Erik Kristensen | |
# Email: [email protected] | |
# License: MIT | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# The script checks if a container is running. | |
# OK - running |
<?php | |
header('Content-Type: text/plain'); | |
session_start(); | |
if(!isset($_SESSION['visit'])) | |
{ | |
echo "This is the first time you're visiting this server"; | |
$_SESSION['visit'] = 0; | |
} | |
else | |
echo "Your number of visits: ".$_SESSION['visit']; |