Skip to content

Instantly share code, notes, and snippets.

Avatar

Travis Newman travnewmatic

View GitHub Profile
View sendmatrix
#!/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>
View sendmatrix
#!/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>
View gist:d29700cf4df034fcd5c8d57f66b80665
Desktop
Documents
Downloads
Dropbox
go
lynx_bookmarks.html
Lynx.trace
mail
Mail
Music
View gist:42d27ea3564685f41a3b97fa791d4f74
{
"Images": [
{
"Architecture": "x86_64",
"CreationDate": "2019-04-19T10:05:37.000Z",
"ImageId": "ami-0eff36fb6e06d5a49",
"ImageLocation": "243104436078/i-0aa27c41b3bb78f6a",
"ImageType": "machine",
"Public": false,
"OwnerId": "243104436078",
View gist:253bbb7fa435a03e2d081d6c89b581d4
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:
View gist:77630dc0395c9faacf2e6c9beeb3ba30
(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"
View gist:e19cf91577e1582d93e9187ff602f528
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:
View gist:ac2c3c29b98c3daabe3886d31ce69413
(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
View gist:ec4b54aa33985dc314fde97347689334
(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"
You can’t perform that action at this time.