Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
💻

decentral1se decentral1se

💭
💻
View GitHub Profile
@decentral1se
decentral1se / bot-logs.txt
Created Jan 13, 2021
bot kick and re-join debug logs
View bot-logs.txt
DEBUG RECV: <presence to="echobot@foo.com/i8Q_SREy" type="unavailable" from="foobar@muc.foo.com/echobot" id="7ad540580b6e41eead4f6a76b78a3ed2"><x xmlns="http://jabber.org/protocol/muc#user"><status code="307" /><item role="none" jid="echobot@foo.com/i8Q_SREy" affiliation="member"><actor nick="foobar" /></item><status code="110" /></x></presence>
DEBUG MUC presence from foobar@muc.foo.com/echobot : {'lang': '', 'nick': 'echobot', 'role': 'none', 'jid': 'echobot@foo.com/i8Q_SREy', 'status_codes': {307, 110}, 'room': 'foobar@muc.foo.com', 'affiliation': 'member', 'status': '', 'show': None, 'alt_nick': ''}
DEBUG Event triggered: groupchat_presence
DEBUG Event triggered: muc::foobar@muc.foo.com::presence
DEBUG Event triggered: muc::foobar@muc.foo.com::got_offline
DEBUG RECV: <message to="echobot@foo.com" id="77f41bca-c25e-4046-ace8-4552afef3101" from="foobar@muc.foo.com"><x xmlns="http://jabber.org/protocol/muc#user"><invite from="foobar@foo.com/dino.68992a39"><reason /></invite></x><body>fooba
@decentral1se
decentral1se / docker-compose.yml
Created May 24, 2020
invoiceninja docker-compose.yml
View docker-compose.yml
---
version: "3.8"
services:
nginx:
image: "nginx:stable"
configs:
- source: nginx-conf-v1
target: /etc/nginx/nginx.conf
volumes:
View chmxdx_letters.py
from contextlib import asynccontextmanager
from string import ascii_letters
from typing import Dict
import attr
from trio import (
BrokenResourceError,
ClosedResourceError,
Lock,
MemoryReceiveChannel,
View locking.py
from string import ascii_letters
from typing import Dict
import attr
from trio import ClosedResourceError, Lock, open_nursery, run
from trio.abc import Stream
from trio.testing import memory_stream_pair
@attr.s(auto_attribs=True)
View docker-compose.production.yml
---
version: "3.7"
services:
jekyll:
command: >
jekyll serve \
--verbose \
--config /srv/jekyll/_config_prod.yml \
--trace
@decentral1se
decentral1se / alerta.conf
Created Apr 10, 2020
alerta.conf (alerta-mailer troubles...)
View alerta.conf
[DEFAULT]
debug = True
endpoint = http://localhost:8080/api
key = {{ alerta_cli_api_key }}
output = json
sslverify = False
timezone = Europe/London
[alerta-mailer]
amqp_topic = notify
View datnodev4.2.log
## dat-nodev4...origin/dat-nodev4
D package-lock.json
?? datnodev4.2.log
* dat-nodev4
master
ce8e607 update package-lock.json
1adbff3 Update README.md
bebb175 update readme
6ce200c use node 12
f716675 fix tests
View datnodev4.2.log
> fd-lock@1.0.2 install /home/foo/work/dat/node_modules/fd-lock
> node-gyp-build
> sodium-native@2.4.9 install /home/foo/work/dat/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"
> utp-native@1.7.3 install /home/foo/work/dat/node_modules/discovery-swarm/node_modules/utp-native
View datnodev4.log
> sodium-native@2.3.0 install /home/foo/work/dat/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
View pelican.py
"""Pelican plugin for interacting with Homebase."""
from collections import defaultdict
from datetime import datetime as dt
from operator import attrgetter
from pelican import signals
from pelican.contents import Article, Author, Category
from pelican.generators import ArticlesGenerator, Generator
from pelican.readers import BaseReader