This file contains 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.7" | |
services: | |
jekyll: | |
command: > | |
jekyll serve \ | |
--verbose \ | |
--config /srv/jekyll/_config_prod.yml \ | |
--trace |
This file contains 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
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 |
This file contains 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.8" | |
services: | |
nginx: | |
image: "nginx:stable" | |
configs: | |
- source: nginx-conf-v1 | |
target: /etc/nginx/nginx.conf | |
volumes: |
This file contains 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 contextlib import asynccontextmanager | |
from string import ascii_letters | |
from typing import Dict | |
import attr | |
from trio import ( | |
BrokenResourceError, | |
ClosedResourceError, | |
Lock, | |
MemoryReceiveChannel, |
This file contains 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
"""Mux/demux protocol toy example with Trio. | |
Naively done and just about working! Probably buggy. There is not much by way | |
of error handling however it does showcase an approach for multiplexing a | |
streamed connection with multiple channels. All messages that are sent over the | |
stream are tagged with a channel ID. Each Protocol and Channel instance have | |
their own incoming and outgoing queue. | |
I'm trying to work towards having a robust mux/demux implementation and need | |
some help. Any comments on this would be greatly appreciated. Hopefully this |
This file contains 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 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) |
This file contains 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
[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 |
This file contains 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
## 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 |
This file contains 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
> 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 |
This file contains 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
> 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' |
NewerOlder