Skip to content

Instantly share code, notes, and snippets.

View travnewmatic's full-sized avatar

Travis Newman travnewmatic

View GitHub Profile
#!/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>
#!/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>
Hello world!
Desktop
Documents
Downloads
Dropbox
go
lynx_bookmarks.html
Lynx.trace
mail
Mail
Music
{
"Images": [
{
"Architecture": "x86_64",
"CreationDate": "2019-04-19T10:05:37.000Z",
"ImageId": "ami-0eff36fb6e06d5a49",
"ImageLocation": "243104436078/i-0aa27c41b3bb78f6a",
"ImageType": "machine",
"Public": false,
"OwnerId": "243104436078",
on computer that works:
tnewman@host0:~$ ./go-jira-bash
++ '[' -f /home/tnewman/.gpg-agent-info ']'
++ '[' '!' -f /home/tnewman/.gpg-agent.conf ']'
++ '[' -n '' ']'
+++ tty
++ export GPG_TTY=/dev/pts/1
++ GPG_TTY=/dev/pts/1
on computer that does not work:
(setq user-mail-address "travnewmatic@gmail.com"
user-full-name "Travis Newman")
(setq gnus-select-method
'(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port "imaps")
(nnimap-stream tls)))
(setq smtpmail-smtp-server "smtp.gmail.com"
Warning: Opening nntp server on news...failed: >>> (error news/nntp Temporary failure in name resolution); Server nntp+news previously determined to b\
e down; not retrying; Opening nntp server on news...failed: >>> (error news/nntp Temporary failure in name resolution); Server nntp+news previously de\
termined to be down; not retrying
Connecting to imap.gmail.com...
Opening nnimap server on imap.gmail.com...
Opening connection to imap.gmail.com via tls...
Unable to open server nnimap+imap.gmail.com due to: Process *nnimap* not running
Opening nnimap server on imap.gmail.com...failed:
Unable to contact server imap.gmail.com:
(setq user-mail-address "name@domain.tld"
user-full-name "first last")
;; workaround for TLS1.3 bug
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
;; Make Gnus NOT ignore [Gmail] mailboxes
(setq gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
(setq gnus-select-method
(setq user-mail-address "travispaulnewman@gmail.com"
user-full-name "Travis Newman")
;; workaround for TLS1.3 bug
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
;; Make Gnus NOT ignore [Gmail] mailboxes
(setq gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
(setq gnus-select-method '(nntp "aioe"