We use a home made redis-3.0 docker image (https://registry.hub.docker.com/u/bobuss/redis-cluster/), with the cluster mode enabled, and the classical ports exposed (6379 for redis and 16379 for the cluster).
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
ENV=env | |
SRC_CORE=src | |
CLOC=$(shell which cloc) | |
test-all: clean pep8 cloc init-coverage test-unit test-functionnal test-integration report-coverage flake8 lint clone | |
pep8: | |
$(ENV)/bin/pep8 --max-line-length=99 $(SRC_CORE) > pep8.log || : |
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
from __future__ import absolute_import | |
import pprint | |
from raven.handlers.logging import SentryHandler | |
class VerboseSentryHandler(SentryHandler, object): | |
""" | |
Subclass the SentryHandler in order to add the locals to the record | |
Inspired by The Verbose exception Formatter | |
From Bitly blog : http://word.bitly.com/post/69080588278/logging-locals |
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
01:38,39,69,71,73,74 | |
02:08,51,59,60,77,80 | |
03:18,23,42,58,63,71 | |
04:05,06,26,83,84 | |
05:04,26,38,73 | |
06:04,83 | |
07:26,30,38,42,43,48,84 | |
08:02,51,55 | |
09:11,31,66 | |
10:21,51,52,77,89 |
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
<!DOCTYPE html> | |
<!-- Based on HTML5 Bones | http://html5bones.com --> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<meta name="description" 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
#!/bin/sh | |
# Delete log files older than {{ daysdelete }} days | |
nice -n 19 find {{ logdirectory }} -type f -name "*.bz2" -mtime +{{ daysdelete }} -exec rm '{}' \; >/dev/null 2>&1 | |
# Compress log files older than {{ dayscompress }} days | |
ionice -c3 nice -n 19 find {{ logdirectory }} -type f ! -path "*.bz2" ! -path "*.log" ! -path "*.gz" -mtime +{{ dayscompress }} -exec bzip2 '{}' \; >/dev/null 2>&1 | |
# Reload rsyslog | |
/bin/kill -HUP $(cat /var/run/rsyslogd.pid) |
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: '2.1' | |
services: | |
homeassistant: | |
restart: always | |
image: homeassistant/raspberrypi3-homeassistant | |
expose: | |
- 8123 | |
ports: | |
- "8123:8123" |
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.9" | |
services: | |
minecraft-server: | |
image: "itzg/minecraft-server" | |
container_name: "minecraft-server" | |
ports: | |
- "25565:25565" | |
- "4711:4711" | |
volumes: | |
- "./minecraft:/data" |
OlderNewer