Skip to content

Instantly share code, notes, and snippets.

View travnewmatic's full-sized avatar

Travis Newman travnewmatic

View GitHub Profile
{
"Images": [
{
"Architecture": "x86_64",
"CreationDate": "2019-04-19T10:05:37.000Z",
"ImageId": "ami-0eff36fb6e06d5a49",
"ImageLocation": "243104436078/i-0aa27c41b3bb78f6a",
"ImageType": "machine",
"Public": false,
"OwnerId": "243104436078",
Desktop
Documents
Downloads
Dropbox
go
lynx_bookmarks.html
Lynx.trace
mail
Mail
Music
Hello world!
#!/bin/bash
# Adjust homserver, room, and accesstoken to your particular setup
# Script is expecting data to be piped in on STDIN
# Example:
# echo "some text" | sendmatrix
msgtype=m.text
homeserver=<homeserver>
room=<room id>
#!/bin/bash
# substitute with your variables
# grabs all arguments and dumps them into the body of the message
MSGTYPE=m.text
BODY=$@
HOMESERVER=<homeserver goes here>
ROOM=<room id goes here>
ACCESSTOKEN=<access token goes here>