CC2538 SoCs are Cortex-M4 based SoCs by Texas Instruments for 802.15.4 PAN networking, especially for Zigbee communication using their Zigbee Stack solution. It also is a solid foundation for hobbyist-grade solutions involving Zigbee communication, especially for running a self-implemented Zigbee coordinator (often called "Zigbee gateway" in commercial distribution of similar tech). Software-wise, this is usually done by running "ZNP" (Zigbee Network Processor) firmware on the SoC and using a separate controller/computer to act as the "ZAP" (Zigbee Application Processor). In a hobbyist setting, the former is usually a cheap module from china containing the chip, capacitors and an antenna or antenna connector, while the latter is e.g. a Raspberry Pi or an Intel NUC or whatever floats your boat. The API between both components is specified and so the software side on the ZAP does not need to bother with Zigbee communication states but can act on a
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
#!/usr/bin/env python | |
""" | |
Nagios plugin to check PostgreSQL 9 streaming replication lag. | |
Requires psycopg2 and nagiosplugin (both installable with pip/easy_install). | |
See: http://bucardo.org/check_postgres/check_postgres.pl.html#hot_standby_delay | |
MIT licensed: | |
Copyright (c) 2010 Jacob Kaplan-Moss. All rights reserved. |
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
{% for key, value in options.iteritems() %} | |
{{ key|upper }}="{{ value }}" | |
{% endfor %} |
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
--- | |
apiVersion: monitoring.coreos.com/v1 | |
kind: PrometheusRule | |
metadata: | |
name: prometheus-kafka-lagging | |
labels: | |
ksonnet.io/component: prometheus-rules | |
prometheus: k8s | |
role: alert-rules | |
namespace: monitoring |
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
#!/usr/bin/env python | |
import requests | |
from requests.auth import HTTPBasicAuth | |
from urllib.parse import urljoin | |
import os | |
import io | |
import zipfile | |
# this file should contain teamcity base url |
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 | |
set -e | |
set -o pipefail | |
prometheus_format=${DEVICEMAPPER_PROMETHEUS:-true} # influxdb format otherwise | |
function format_labels { | |
first=true | |
echo "$*" | tr , "\\n" | while read -r l; do |
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
#cloud-config | |
package_update: true | |
package_upgrade: true | |
write_files: | |
- path: /etc/default/teamcity-agent | |
owner: root:root | |
permissions: '0644' | |
content: | |
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
PLAY [127.0.0.1] *************************************************************** | |
Tuesday 09 July 2019 16:42:06 +0000 (0:00:00.111) 0:00:00.111 ********** | |
TASK [docker-py] *************************************************************** | |
changed: [127.0.0.1] | |
Tuesday 09 July 2019 16:42:11 +0000 (0:00:05.196) 0:00:05.307 ********** | |
TASK [run container] *********************************************************** | |
changed: [127.0.0.1] | |
Tuesday 09 July 2019 16:42:13 +0000 (0:00:01.632) 0:00:06.940 ********** |
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
- name: run mysql with docker container and wait for healthcheck pass | |
docker_container: | |
name: my-mysql | |
hostname: my-mysql | |
image: mysql/mysql-server # this image has healthchecks | |
env: "{{ mysql_docker_env }}" | |
volumes: | |
- "{{ mysql_data_directory }}/data:/var/lib/mysql" | |
- "{{ mysql_data_directory }}/logs:/var/log/mysqld" | |
- /var/run/mysqld:/var/run/mysqld # we will have ability to connect to mysql from host machine |
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
--- | |
variables: | |
terraform_image: terraform-vault-jq | |
default: | |
image: | |
name: $terraform_image | |
cache: | |
key: terraform | |
paths: |
OlderNewer