Skip to content

Instantly share code, notes, and snippets.

View Yoric's full-sized avatar

David Teller Yoric

View GitHub Profile
{
"content": {
"body": "XXX",
"format": "org.matrix.custom.html",
"formatted_body": "XXX",
"msgtype": "m.notice",
"org.matrix.msc1767.html": "XXX",
"org.matrix.msc1767.text": "XXX"
},
"origin_server_ts": 1669813978182,
{
"content": {
"body": "XXX",
"format": "org.matrix.custom.html",
"formatted_body": "XXX",
"m.new_content": {
"body": "XXX",
"format": "org.matrix.custom.html",
"formatted_body": "XXX",
"msgtype": "m.notice",
@Yoric
Yoric / docker.log
Created January 18, 2022 14:23
Docker logs
$ journalctl -fu docker
-- Logs begin at Sat 2021-08-07 23:57:33 CEST. --
janv. 18 15:19:42 Orchestra dockerd[192417]: time="2022-01-18T15:19:42.189735162+01:00" level=info msg="ignoring event" container=f4f34cbcb21b9f822fda5f8bb52020e7e4ba4dc12fcb0d392aabfa64cbf08da0 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
janv. 18 15:19:45 Orchestra dockerd[192417]: time="2022-01-18T15:19:45.321429976+01:00" level=info msg="ignoring event" container=06ee661b83c9ec614e5db74e22f1a708daedbbf7cf8be995e6af1125d8344e30 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
janv. 18 15:19:48 Orchestra dockerd[192417]: time="2022-01-18T15:19:48.157501518+01:00" level=info msg="ignoring event" container=748b434cb8d24a791f2700d28100e27deb33b38ec649041cc9f450b968ffbf37 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
janv. 18 15:19:51 Orchestra dockerd[192417]: time="2022-01-18T15:19:51.381467768+01:00" level=info msg="ignoring event"
@Yoric
Yoric / user_limits.rs
Created January 10, 2022 15:54
User Limits
mod override_rate_limits {
use matrix_sdk::ruma::api::ruma_api;
use matrix_sdk::ruma::UserId;
use serde::{Deserialize, Serialize};
ruma_api! {
metadata: {
description: "Override rate limits",
method: POST,
@Yoric
Yoric / error.log
Created December 21, 2020 12:23
Synapse log
synapse_1 | Traceback (most recent call last):
synapse_1 | File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
synapse_1 | conn = connection.create_connection(
synapse_1 | File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
synapse_1 | raise err
synapse_1 | File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
synapse_1 | sock.connect(sa)
synapse_1 | ConnectionRefusedError: [Errno 111] Connection refused
synapse_1 |
synapse_1 | During handling of the above exception, another exception occurred:
@Yoric
Yoric / Dockerfile
Last active December 17, 2020 13:53
matrix Dockerfile
FROM matrixdotorg/synapse:latest
# Install extension.
WORKDIR /tmp/iwf-filter
COPY . .
RUN pip install .
# Customize homeserver.yaml
CREATE SCHEMA IF NOT EXISTS image_filter;
CREATE TABLE IF NOT EXISTS image_filter.iwf_links (
url TEXT PRIMARY KEY
);
CREATE TABLE IF NOT EXISTS image_filter.iwf_md5 (
md5 TEXT PRIMARY KEY
);
@Yoric
Yoric / ordre.md
Last active March 24, 2020 12:35

Téléphone téléphonique !

  1. Marceau
  2. Aldous
  3. Maylo
  4. Victor
  5. Iris
  6. Basil
  7. Anton
  8. Charlotte
@Yoric
Yoric / Binary AST benchmarks.csv
Last active February 23, 2020 15:44
Binary AST benchmarks
Parsing benchmark duration (ms) Text (ideal syntax parsing heuristics) Text (full parsing) Pure syntax parsing Binary Binary vs ideal syntax parsing heuristics Binary vs full parsing Binary vs pure syntax parsing
frameworks/angular.1.6.5 1106 1061 1240 671 0.61 0.63 0.54
frameworks/backbone.1.3.3 135 138 105 76 0.56 0.55 0.72
frameworks/bootstrap.4.1.0 242 242 198 150 0.62 0.62 0.76
frameworks/chart.2.7.2 844 852 703 533 0.63 0.63 0.76
frameworks/ember.2.18.2 2583 2392 2155 1673 0.65 0.70 0.78
frameworks/foundation.6.4.3 659 652 544 427 0.65 0.65 0.78
frameworks/jquery.3.3.1 644 521 415 322 0.50 0.62 0.78
frameworks/moment.2.22.1 283 292 233 184 0.65 0.63 0.79
frameworks/react-dom.production.16.3.2 493 498 409 294 0.60 0.59 0.72

--------------- | ------- | ------------------------------------------------------------------- 10.67 s 6.0% | 10.67 s | decltype(auto) mozilla::detail::VariantImplementation, (unsigned char)6>, js::frontend::MultiLookupHuffmanTable, (unsigned char)6>, (unsigned char)6>, js::frontend::HuffmanTableUnreachable>::matchN, js::frontend::MultiLookupHuffmanTable, (unsigned char)6>, js::frontend::MultiLookupHuffmanTable, (unsigned char)6>, (unsigned char)6>, js::frontend::HuffmanTableUnreachable> const, js::frontend::GenericHuffmanTable