remove unused scripts

This commit is contained in:
Nico Schottelius 2025-01-31 15:25:40 +01:00
commit 8c4abba69d
2 changed files with 0 additions and 61 deletions

View file

@ -1,16 +0,0 @@
#!/usr/bin/env python3
import sys
import urllib
from mautrix.client import ClientAPI
matrix_server="ungleich.matrix.ungleich.cloud"
matrix_user="@nico:ungleich.ch"
matrix_password=sys.argv[1]
client = ClientAPI(matrixuser,
base_url=f"https://{matrix_server}"
token="syt_123_456")
await print(client.whoami())

View file

@ -1,45 +0,0 @@
#!/bin/sh
matrix_server=$1; shift
# matrix_user=$1; shift
# matrix_user=$(echo $matrix_user | sed 's/^@/\@/')
# matrix_password=$1; shift
# Login
# http -j -p "HBhb" \
# https://${matrix_server}/_matrix/client/v3/login \
# identifier:="{ \"type\":\"m.id.user\", \"user\":\"$matrix_user\" }" \
# device_id=nicoshell initial_device_display_name="matrixclientsh" \
# type=m.login.password \
# password=$matrix_password
# {
# "access_token": "..",
# "device_id": "nicoshell",
# "home_server": "ungleich.ch",
# "user_id": "@nico:ungleich.ch",
# "well_known": {
# "m.homeserver": {
# "base_url": "https://ungleich.matrix.ungleich.cloud/"
# }
# }
# }
key_url=https://${matrix_server}/_matrix/client/v3/room_keys/keys
token=$1; shift
http -j -p "HBhb" $key_url \
identifier:="{ \"type\":\"m.id.user\", \"user\":\"$matrix_user\" }" \
device_id=nicoshell initial_device_display_name="matrixclientsh" \
type=m.login.password \
password=$matrix_password
# get device keys + master_keys of Nico
http https://ungleich.matrix.ungleich.cloud/_matrix/client/v3/keys/query access_token=="$token" device_keys:='{ "@nico:ungleich.ch": [] }'
# Get messages
room_id="!..:..."
http 'https://ungleich.matrix.ungleich.cloud/_matrix/client/v3/rooms/!pkPjzozYKUNEbcZKKA:unchat.cat/messages' access_token=="$token"
# Get room keys