13 Feb 2021 |
@gate32:matrix.org | 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: #!/bin/bash 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? #!/bin/bash
# usage:
# check-urls [path/to/list.txt] [path/to/result.txt]
LISTFILE=${1:-'list.txt'}
RESFILE=${2:-'res.txt'}
URLS=$(cat $LISTFILE)
for U in $URLS; do
EU=$(curl $U -s -L -I -o /dev/null -w '%{url_effective} (%{http_code})')
echo "$U >> $EU" >> "$RESFILE"
done
Something like that?
| 13:06:33 |
| @benpa:matrix.org left the room. | 13:11:36 |
vbits.es | Hi gate32 thanks for ur help :) someone helped already in other sys admins group | 13:27:38 |
@gate32:matrix.org | vbits: Np. Good luck =) | 13:28:55 |
vbits.es | sth 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.es | :) | 15:02:33 |
15 Feb 2021 |
| @elchemist:matrix.org joined the room. | 18:27:07 |
| @elchemist:matrix.org left the room. | 18:28:26 |
20 Feb 2021 |
| vbits.es set a profile picture. | 16:11:04 |
| vbits.es changed their display name from vbits to vbits.es. | 16:12:02 |
25 Feb 2021 |
| @awaya:asra.gr joined the room. | 19:55:13 |
2 Mar 2021 |
| @gate32:matrix.org left the room. | 17:28:34 |
6 Mar 2021 |
| @awaya:asra.gr changed their display name from awaya to some rich schoolgirls being raped and murdered. | 00:19:51 |
| @awaya:asra.gr left the room. | 07:40:44 |
10 Mar 2021 |
| @nod0n:matrix.org joined the room. | 11:26:03 |
11 Mar 2021 |
| @249 joined the room. | 00:55:35 |
| @cheako:matrix.org joined the room. | 13:28:30 |
@cheako:matrix.org | 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.org | Figured it out. | 20:59:55 |
14 Mar 2021 |
| @etomte:matrix.org joined the room. | 17:33:47 |
21 Mar 2021 |
| pandaru joined the room. | 14:16:29 |
23 Mar 2021 |
| @etomte:matrix.org left the room. | 03:24:51 |
| Amariyah White joined the room. | 18:09:01 |
Amariyah White |
I get my account to you | 22:29:30 |
29 Mar 2021 |
Amariyah White | hiiiiiiiiiiiiiiiiiiiiiiiiiiiii | 17:02:16 |
16 Apr 2021 |
Amariyah White | be on Zoom | 05:59:38 |
7 May 2021 |
| @tulir:maunium.net left the room. | 21:50:43 |
11 May 2021 |
| @nod0n:matrix.org left the room. | 06:17:40 |
| faisalshah joined the room. | 23:00:03 |
12 May 2021 |
faisalshah | How 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 |