Skip to content

Instantly share code, notes, and snippets.

@tbart
tbart / Metronome_SSL_questions.md
Created September 4, 2022 15:55
Metronome SSL questions

Hi! Can anybody point me to what needs to be done to get the SSL setup for sending files (with Conversations, so I guess HTTP upload) and OMEMO working correctly? I have a setup now that works, but it does not seem right. I have a main domain chat.example.org (with a letsenrypt certificate) Another one for uploads upload.chat.example.org (with another letsencrypt cert) However I cannot assign the certificate for upload.chat.example.org for a virtualhost defined for it (metronome does not start, no errors in the logs, I think this is a bug). Only if I set ssl ={ .. } in the global config space and use the upload cert, it works. This however seems a little strange. Is this only supposed to work with one wildcard cert for all domains, i.e. the main on port 5222 and the upload domain on 5280 ? Relevant parts of my current config:

ssl = {
#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ar71xx is not set
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
LineageOS Version: '15.1-20190101-NIGHTLY-oneplus3'
Build fingerprint: 'OnePlus/OnePlus3/OnePlus3:8.0.0/OPR1.170623.032/02281230:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 5929, tid: 5946, name: SynthThread >>> com.svox.pico <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x5af00d67
r0 5af00d67 r1 000000ff r2 c903f7d4 r3 c903f7d8
r4 db012180 r5 c903f7d8 r6 00000000 r7 db012214
r8 db012228 r9 db0167e0 sl db0182d2 fp db01221a
@tbart
tbart / lenovo-throttling-fix-0.4.ebuild
Created December 4, 2018 16:19
ebuild and accompanying openrc initscript for lenovo-throttling-fix
# Copyright 2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit systemd
DESCRIPTION="Workaround for Linux throttling issues on Lenovo notebooks"
HOMEPAGE="https://github.com/erpalma/lenovo-throttling-fix"
SRC_URI="https://github.com/erpalma/lenovo-throttling-fix/archive/v${PV}.tar.gz"
@tbart
tbart / gist:2f5b8daaaf5d8df0d6299b8ea648ab6f
Created April 24, 2018 21:14
tlp-stat battery output t470s
--- TLP 1.1 --------------------------------------------
+++ ThinkPad Battery Features
tp-smapi = inactive (unsupported hardware)
tpacpi-bat = active
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer = SMP
/sys/class/power_supply/BAT0/model_name = 00HW023
/sys/class/power_supply/BAT0/cycle_count = 6
@tbart
tbart / DAVdroid_0.6.7.1_crash_adding_account_radicale_0.9-1
Created November 28, 2014 22:18
lDAVdroid_0.6.7.1_crash_adding_account_radicale_0.9-1
11-28 22:47:48.050 I/davdroid.DavResourceFinder(2918): Found address book home set: /user/addressbook.vcf/
11-28 22:47:48.070 V/davdroid.SNISocketFactory(2918): Setting allowed TLS protocols: TLSv1, TLSv1.1, TLSv1.2
11-28 22:47:48.090 V/davdroid.SNISocketFactory(2918): Setting allowed TLS ciphers: TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, TLS_