Admin' of Matrix Using I.E.: Bash Scripting, cURL, JSON, et cetera. ☞ ؟⸮UNOFFICIAL⸮؟ – Self Support Community for community self support.

49 Members
Depositary workgroup for some good code snippets that get things done in Matrix rooms and Homeservers, despite lag and GUI client freezing¦hanging, from ye ole terminal emulated command prompt. ¶Aimed at intermediate skilled practicioners. ¶Kindly prefer POST over GET method as appropriate, where putting your access_token in a URL/URL that leaves the browser is not smart. ¶Get a cli on that mobile! • Try to post files that Matrix clients may read natively. • We should have a list of all working Event Types i.e. m.room.power_levels . • https://web.archive.org/web/20180712100113/https://gist.github.com/RickCogley/69f430d4418ae5498e8febab44d241c9 • https://matrix.org/docs/api/client-server/ • https://github.com/anoadragon453/matrix-scripts • https://en.wiktionary.org/wiki/depositary http://grammarist.com/usage/depository-repository/ https://en.wiktionary.org/wiki/depository20 Servers

Load older messages

13 Feb 2021
In reply to @vbits:matrix.org
I would like to do a script that test a urls list .txt and give a output the effective url (302)

I found this one:
curl $1 -s -L -I -o /dev/null -w '%{url_effective}'

but it just for one link that I have to write.. someone can help me please?

# usage:
# check-urls [path/to/list.txt] [path/to/result.txt]



for U in $URLS; do
    EU=$(curl $U -s -L -I -o /dev/null -w '%{url_effective} (%{http_code})')
    echo "$U >> $EU" >> "$RESFILE"

Something like that?

@benpa:matrix.orgbenpa-matrix left the room.13:11:36
@vbits:matrix.orgvbits.es Hi gate32 thanks for ur help :) someone helped already in other sys admins group 13:27:38
@gate32:matrix.orggate32 vbits: Np. Good luck =) 13:28:55
@vbits:matrix.orgvbits.essth like this? ``` for URL in $(cat urls.txt) ; do res="$(curl --silent --head --location --output /dev/null --write-out '%{http_code}' $URL | grep '^2')" if [[ $res == 200 ]]; then curl -s -L -I -o /dev/null -w $URL' -> %{url_effective}\n' $URL; else echo "$URL -> " fi done ``` gives me ``` google.de -> http://www.google.de/ google.com -> http://www.google.com/ translate.google.com -> https://translate.google.com/ example.com -> http://example.com/ umfrage2011.com -> ```15:01:52
@vbits:matrix.orgvbits.es:) 15:02:33
15 Feb 2021
@elchemist:matrix.orgElChemist joined the room.18:27:07
@elchemist:matrix.orgElChemist left the room.18:28:26
20 Feb 2021
@vbits:matrix.orgvbits.es set a profile picture.16:11:04
@vbits:matrix.orgvbits.es changed their display name from vbits to vbits.es.16:12:02
25 Feb 2021
@awaya:asra.grsome rich schoolgirls being raped and murdered joined the room.19:55:13
2 Mar 2021
@gate32:matrix.orggate32 left the room.17:28:34
6 Mar 2021
@awaya:asra.grsome rich schoolgirls being raped and murdered changed their display name from awaya to some rich schoolgirls being raped and murdered.00:19:51
@awaya:asra.grsome rich schoolgirls being raped and murdered left the room.07:40:44
10 Mar 2021
@nod0n:matrix.orgNodøn joined the room.11:26:03
11 Mar 2021
@249z:matrix.org@249 joined the room.00:55:35
@cheako:matrix.orgcheako joined the room.13:28:30
@cheako:matrix.orgcheako Hello, I've never done webdav b4(let alone 4 nginx). strace reports the folder in MKCOL is being stat()twice, but then a 404 is returned. I had assumed I needed to create the root folder and give www-data write access. I've tried a lot of things and I'm not sure what's closest to working. What steps to debug? Everything online makes it look like it just works, not taking creating folders or setting up a DB into account. https://paste.nginx.org/cf 20:14:15
@cheako:matrix.orgcheakoFigured it out.20:59:55
14 Mar 2021
@etomte:matrix.orgTomte joined the room.17:33:47
21 Mar 2021
@pandaru:matrix.orgpandaru joined the room.14:16:29
23 Mar 2021
@etomte:matrix.orgTomte left the room.03:24:51
@amariyah:matrix.orgAmariyah White joined the room.18:09:01
@amariyah:matrix.orgAmariyah White I get my account to you22:29:30
29 Mar 2021
@amariyah:matrix.orgAmariyah Whitehiiiiiiiiiiiiiiiiiiiiiiiiiiiii17:02:16
16 Apr 2021
@amariyah:matrix.orgAmariyah Whitebe on Zoom05:59:38
7 May 2021
@tulir:maunium.nettulir left the room.21:50:43
11 May 2021
@nod0n:matrix.orgNodøn left the room.06:17:40
@faisalshah:matrix.orgfaisalshah joined the room.23:00:03
12 May 2021
@faisalshah:matrix.orgfaisalshahHow can I configure synapse/element to only allow admins (or a white list of selected users) allowed to join rooms on other matrix servers? By default, I would like to disable 'interacting outside my homeserver' , but allow it for some class of users.00:31:32

There are no newer messages yet.

Back to Room List