Let's start by creating entry for server in docker-compose.yaml
:
version: '2'
# version 2 of docker-compose is not "old" version, it's the actual version,
# see below for explanation:
# https://stackoverflow.com/a/53636006/961092
services:
Let's start by creating entry for server in docker-compose.yaml
:
version: '2'
# version 2 of docker-compose is not "old" version, it's the actual version,
# see below for explanation:
# https://stackoverflow.com/a/53636006/961092
services:
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.
Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file
groups: | |
- name: Prometheus self-monitoring | |
rules: | |
# A Prometheus job has disappeared | |
- alert: PrometheusJobMissing | |
expr: absent(up{job="my-job"}) | |
for: 5m | |
labels: | |
severity: warning |
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "datasource", | |
"uid": "grafana" | |
}, | |
"enable": true, |
#!/bin/bash | |
# create mongodb_exporter.service | |
cat > /etc/systemd/system/mongodb_exporter.service <<END | |
[Unit] | |
Description=Prometheus MongoDB Exporter | |
Documentation=https://github.com/percona/mongodb_exporter | |
After=network.target | |
[Service] |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
atl*CLI> core show help | |
! -- Execute a shell command | |
acl show -- Show a named ACL or list all named ACLs | |
ael reload -- Reload AEL configuration | |
ael set debug {read|tokens|macros|contexts|off} -- Enable AEL debugging flags | |
agi dump html -- Dumps a list of AGI commands in HTML format | |
agi exec -- Add AGI command to a channel in Async AGI | |
agi set debug [on|off] -- Enable/Disable AGI debugging | |
agi show commands [topic] -- List AGI commands or specific help | |
aoc set debug -- enable cli debugging of AOC messages |
<form action="search"> | |
<fieldset> | |
<legend>Search string</legend> | |
<input type="search" name="query" value="" placeholder="Enter text"> | |
</fieldset> | |
<fieldset> | |
<legend>Search for</legend> | |
<input type="radio" name="type" value="name" checked="checked"> |
const https = require('https'); | |
exports.postToSlack = () => { | |
// Read more about Slack webhooks here: https://api.slack.com/messaging/webhooks | |
const webhookPath = '/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX' | |
const payload = { | |
'channel': '#mychannel', | |
'username': 'slackbot', |